Server

<back to all web services

GetCustomerUsers

Users
Requires Authentication
The following routes are available for this service:
GET/api/v1/users/{CustomerGuid}

// @DataContract
export class User
{
    // @DataMember
    // @ApiMember(IsRequired=true)
    public userName: string;

    // @DataMember
    public password: string;

    // @DataMember
    public isConfirmed: string;

    // @DataMember
    public id: string;

    // @DataMember
    public role: string;

    public constructor(init?: Partial<User>) { (Object as any).assign(this, init); }
}

export class GetCustomerUsersResponse
{
    public responseStatus: ResponseStatus;
    public users: User[];

    public constructor(init?: Partial<GetCustomerUsersResponse>) { (Object as any).assign(this, init); }
}

export class GetCustomerUsers implements IHasBearerToken
{
    // @ApiMember(IsRequired=true, ParameterType="query")
    public bearerToken: string;

    // @ApiMember(IsRequired=true, ParameterType="path")
    public customerGuid: string;

    public constructor(init?: Partial<GetCustomerUsers>) { (Object as any).assign(this, init); }
}

TypeScript GetCustomerUsers DTOs

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

HTTP + CSV

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: hbr-regional-servdesk.eras-online.de 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}]}