POST | /UserAccount/AccountRegisterationInit |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Cura.Backend.Service.ServiceModel
Namespace Global
Namespace Cura.Backend.Service.ServiceModel
Public Partial Class AccountRegisterationInitRequest
Public Overridable Property MobileNumber As String
Public Overridable Property IsoCode As String
Public Overridable Property AttemptNumber As Integer
End Class
Public Partial Class AccountRegisterationInitResponse
Public Overridable Property LocationCountryId As Integer
Public Overridable Property ErrorMsg As String
Public Overridable Property IsVerified As Boolean
Public Overridable Property RequestId As String
Public Overridable Property PinCodeRequestEnabled As Boolean
Public Overridable Property BypassMobileAuthentication As Boolean
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET AccountRegisterationInitRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /UserAccount/AccountRegisterationInit HTTP/1.1
Host: api-demo-1.cura.healthcare
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
MobileNumber: String,
IsoCode: String,
AttemptNumber: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { LocationCountryId: 0, ErrorMsg: String, IsVerified: False, RequestId: String, PinCodeRequestEnabled: False, BypassMobileAuthentication: False, ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }