| POST | /api/v1/users/customerAdmin |
|---|
namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Post
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type PostCreateCustomerAdminResponse() =
member val UserId:String = null with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type PostCreateCustomerAdmin() =
[<ApiMember(IsRequired=true, ParameterType="body")>]
member val BearerToken:String = null with get,set
[<ApiMember(IsRequired=true, ParameterType="body")>]
member val Email:String = null with get,set
[<ApiMember(IsRequired=true, ParameterType="body")>]
member val CustomerGuid:String = null with get,set
F# PostCreateCustomerAdmin 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 /api/v1/users/customerAdmin HTTP/1.1
Host: plasa-servdesk.eras-online.de
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
bearerToken: String,
email: String,
customerGuid: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
userId: String,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}