| GET | /api/v1/users/{CustomerGuid} |
|---|
"use strict";
export class User {
/** @param {{userName?:string,password?:string,isConfirmed?:string,id?:string,role?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
userName;
/** @type {string} */
password;
/** @type {string} */
isConfirmed;
/** @type {string} */
id;
/** @type {string} */
role;
}
export class GetCustomerUsersResponse {
/** @param {{responseStatus?:ResponseStatus,users?:User[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
responseStatus;
/** @type {User[]} */
users;
}
export class GetCustomerUsers {
/** @param {{bearerToken?:string,customerGuid?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
bearerToken;
/** @type {string} */
customerGuid;
}
JavaScript GetCustomerUsers 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.
GET /api/v1/users/{CustomerGuid} HTTP/1.1
Host: kromer-servdesk.eras-online.de
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
]
}