| POST | /consumerinitiation |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Client_Initiations.ServiceModel
Namespace Global
Namespace Client_Initiations.ServiceModel
Public Partial Class ConsumerInitiation
Implements IPost
'''<Summary>
'''First name of the consumer
'''</Summary>
<ApiMember(Description:="First name of the consumer", IsRequired:=true)>
Public Overridable Property FirstName As String
'''<Summary>
'''Last name of the consumer
'''</Summary>
<ApiMember(Description:="Last name of the consumer", IsRequired:=true)>
Public Overridable Property LastName As String
'''<Summary>
'''Program name
'''</Summary>
<ApiMember(Description:="Program name", IsRequired:=true)>
Public Overridable Property Program As String
'''<Summary>
'''Company name
'''</Summary>
<ApiMember(Description:="Company name", IsRequired:=true)>
Public Overridable Property CompanyName As String
'''<Summary>
'''Mobile phone number
'''</Summary>
<ApiMember(Description:="Mobile phone number")>
Public Overridable Property MobileNumber As String
'''<Summary>
'''Preferred email address
'''</Summary>
<ApiMember(Description:="Preferred email address", IsRequired:=true)>
Public Overridable Property PreferredEmail As String
'''<Summary>
'''Current work location state
'''</Summary>
<ApiMember(Description:="Current work location state")>
Public Overridable Property CurrentWorkState As String
'''<Summary>
'''Current work location country
'''</Summary>
<ApiMember(Description:="Current work location country")>
Public Overridable Property CurrentWorkCountry As String
'''<Summary>
'''Destination work location state
'''</Summary>
<ApiMember(Description:="Destination work location state")>
Public Overridable Property DestinationWorkState As String
'''<Summary>
'''Destination work location country
'''</Summary>
<ApiMember(Description:="Destination work location country")>
Public Overridable Property DestinationWorkCountry As String
'''<Summary>
'''Preferred work location state
'''</Summary>
<ApiMember(Description:="Preferred work location state")>
Public Overridable Property PreferredWorkState As String
'''<Summary>
'''Preferred work location country
'''</Summary>
<ApiMember(Description:="Preferred work location country")>
Public Overridable Property PreferredWorkCountry As String
End Class
End Namespace
End Namespace
VB.NET ConsumerInitiation DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /consumerinitiation HTTP/1.1
Host: initiation-test.sirva.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"FirstName":"String","LastName":"String","Program":"String","CompanyName":"String","MobileNumber":"String","PreferredEmail":"String","CurrentWorkState":"String","CurrentWorkCountry":"String","DestinationWorkState":"String","DestinationWorkCountry":"String","PreferredWorkState":"String","PreferredWorkCountry":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{}