Billhighway Cloud API

<back to all web services

FormBuilderStateRq

The following routes are available for this service:
GET/signup/api/formBuilder/states
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.Common4.DTO.FormBuilder.Request
Imports BH.CloudAPI.Common4.DTO.FormBuilder.Response
Imports BH.API.DataAccess.Dto.FormBuilder

Namespace Global

    Namespace BH.API.DataAccess.Dto.FormBuilder

        Public Partial Class FormBuilderState
            Public Overridable Property abbreviation As String
            Public Overridable Property stateId As Integer
            Public Overridable Property fullName As String
            Public Overridable Property countryId As Integer
        End Class
    End Namespace

    Namespace BH.CloudAPI.Common4.DTO.FormBuilder.Request

        Public Partial Class FormBuilderStateRq
            Implements IApiRequest
            Public Overridable Property CountryId As Integer
        End Class
    End Namespace

    Namespace BH.CloudAPI.Common4.DTO.FormBuilder.Response

        Public Partial Class FormBuilderStateRs
            Public Sub New()
                states = New List(Of FormBuilderState)
            End Sub

            Public Overridable Property states As List(Of FormBuilderState)
        End Class
    End Namespace
End Namespace

VB.NET FormBuilderStateRq 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 /signup/api/formBuilder/states HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	states: 
	[
		{
			abbreviation: String,
			stateId: 0,
			fullName: String,
			countryId: 0
		}
	]
}