| Requires the role: | Admin | Requires the permission: | CreateUsers |
| POST | /login/create |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceInterface
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceInterface
Public Partial Class LoginAddUserRequest
Public Sub New()
Roles = New List(Of String)
Permissions = New List(Of String)
End Sub
Public Overridable Property UserName As String
Public Overridable Property FirstName As String
Public Overridable Property LastName As String
Public Overridable Property DisplayName As String
Public Overridable Property Email As String
Public Overridable Property Roles As List(Of String)
Public Overridable Property Permissions As List(Of String)
Public Overridable Property Password As String
Public Overridable Property RequestUnixUTCTimeStamp As Long
Public Overridable Property Signature As RequestSignature
End Class
Public Partial Class LoginAddUserResult
Public Overridable Property UserCreated As Boolean
Public Overridable Property UserId As String
Public Overridable Property ErrorMessage As String
End Class
End Namespace
Namespace TicketUserServices.ServiceModel
Public Partial Class RequestSignature
Public Overridable Property SystemId As String
Public Overridable Property SystemSecret As String
Public Overridable Property Signature As String
End Class
End Namespace
End Namespace
VB.NET LoginAddUserRequest 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 /login/create HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
userName: String,
firstName: String,
lastName: String,
displayName: String,
email: String,
roles:
[
String
],
permissions:
[
String
],
password: String,
requestUnixUTCTimeStamp: 0,
signature:
{
systemId: String,
systemSecret: String,
signature: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
userCreated: False,
userId: String,
errorMessage: String
}