| POST | /authorizefunction |
|---|
"use strict";
export class AuthoriseFunction {
/** @param {{eMail?:string,password?:string,systemFunction?:string,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
eMail;
/** @type {string} */
password;
/** @type {string} */
systemFunction;
/** @type {ResponseStatus} */
responseStatus;
}
JavaScript AuthoriseFunction 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 /authorizefunction HTTP/1.1
Host: api.sfgtec.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eMail: String,
password: String,
systemFunction: String,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}