| POST | /cmd/users/correct/name |
|---|
"use strict";
export class Name {
/** @param {{first?:string,last?:string,full?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
first;
/** @type {string} */
last;
/** @type {string} */
full;
}
export class CorrectUserFullName {
/** @param {{id?:string,name?:Name}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id;
/** @type {Name} */
name;
}
JavaScript CorrectUserFullName DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/users/correct/name HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"id":"String","name":{"first":"String","last":"String","full":"String String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}