POST | /UserAccount/AccountRegisterationInit |
---|
namespace Cura.Backend.Service.ServiceModel
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type AccountRegisterationInitResponse() =
member val LocationCountryId:Int32 = new Int32() with get,set
member val ErrorMsg:String = null with get,set
member val IsVerified:Boolean = new Boolean() with get,set
member val RequestId:String = null with get,set
member val PinCodeRequestEnabled:Boolean = new Boolean() with get,set
member val BypassMobileAuthentication:Boolean = new Boolean() with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type AccountRegisterationInitRequest() =
member val MobileNumber:String = null with get,set
member val IsoCode:String = null with get,set
member val AttemptNumber:Int32 = new Int32() with get,set
F# 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 } } }