Server

<back to all web services

GetCustomerUsers

Users
Requires Authentication
The following routes are available for this service:
GET/api/v1/users/{CustomerGuid}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class GetCustomerUsers : IHasBearerToken
{
    @ApiMember(IsRequired=true, ParameterType="query")
    var bearerToken:String? = null

    @ApiMember(IsRequired=true, ParameterType="path")
    var customerGuid:UUID? = null
}

open class GetCustomerUsersResponse
{
    var responseStatus:ResponseStatus? = null
    var users:ArrayList<User> = ArrayList<User>()
}

@DataContract
open class User
{
    @DataMember
    @ApiMember(IsRequired=true)
    var userName:String? = null

    @DataMember
    var password:String? = null

    @DataMember
    var isConfirmed:String? = null

    @DataMember
    var id:String? = null

    @DataMember
    var role:String? = null
}

Kotlin GetCustomerUsers DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/v1/users/{CustomerGuid} HTTP/1.1 
Host: heat-syke-servdesk.eras-online.de 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"users":[{"userName":"String","password":"String","isConfirmed":"String","id":"String","role":"String"}]}