To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /admin/v1/users/register HTTP/1.1
Host: auth.mepis.si
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
publicKey: String,
password: String,
passwordRe: String,
id: 0,
firstName: String,
lastName: String,
isEnabled: False,
recordStatusId: 0,
twoFactorEnabled: False,
phoneNumberConfirmed: False,
phoneNumber: String,
securityStamp: String,
emailConfirmed: False,
normalizedEmail: String,
email: String,
normalizedUserName: String,
username: String,
lockoutEnabled: False,
accessFailedCount: 0,
applicationLanguagesId: 0,
timezonesId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
users:
{
id: 0,
firstName: String,
lastName: String,
isEnabled: False,
recordStatusId: 0,
twoFactorEnabled: False,
phoneNumberConfirmed: False,
phoneNumber: String,
securityStamp: String,
emailConfirmed: False,
normalizedEmail: String,
email: String,
normalizedUserName: String,
username: String,
lockoutEnabled: False,
accessFailedCount: 0,
applicationLanguagesId: 0,
timezonesId: 0
}
}