Portal

<back to all web services

BrowseAllCountryCode

The following routes are available for this service:
GET/countrycode
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Portal.ServiceDto

Namespace Global

    Namespace Portal.ServiceDto

        Public Partial Class BrowseAllCountryCode
            Implements IGet
        End Class

        Public Partial Class BrowseAllCountryCodeResponse
            Inherits ResponseBase
            Public Sub New()
                CountryCodes = New List(Of CountryCodeSimple)
            End Sub

            Public Overridable Property CountryCodes As List(Of CountryCodeSimple)
        End Class

        Public Partial Class CountryCodeSimple
            Public Overridable Property Id As Integer
            Public Overridable Property Code As String
            Public Overridable Property Name As String
        End Class

        Public Partial Class ResponseBase
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET BrowseAllCountryCode DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /countrycode HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	CountryCodes: 
	[
		{
			Id: 0,
			Code: String,
			Name: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}