POST | /register |
---|
namespace MigrantLeap.PortalBackend.Models
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type RegisterUserResponse() =
member val RedirectUrl:String = null with get,set
member val ResponseCode:Int32 = new Int32() with get,set
member val ResponseMessage:String = null with get,set
[<AllowNullLiteral>]
type RegisterUserRequest() =
member val Email:String = null with get,set
member val Language:String = null with get,set
member val Sid:String = null with get,set
member val PaidSubscription:Boolean = new Boolean() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /register HTTP/1.1
Host: portal-api.migrantleap.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"email":"String","language":"String","sid":"String","paidSubscription":false}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"redirectUrl":"String","responseCode":0,"responseMessage":"String"}