All Verbs | /account |
---|
"use strict";
export class GetUserDetails {
constructor(init) { Object.assign(this, init) }
}
export class GetUserDetailsResponse {
/** @param {{provider?:string,userId?:string,userName?:string,fullName?:string,displayName?:string,firstName?:string,lastName?:string,company?:string,email?:string,phoneNumber?:string,birthDate?:string,birthDateRaw?:string,address?:string,address2?:string,city?:string,state?:string,country?:string,culture?:string,gender?:string,language?:string,mailAddress?:string,nickname?:string,postalCode?:string,timeZone?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
provider;
/** @type {string} */
userId;
/** @type {string} */
userName;
/** @type {string} */
fullName;
/** @type {string} */
displayName;
/** @type {string} */
firstName;
/** @type {string} */
lastName;
/** @type {string} */
company;
/** @type {string} */
email;
/** @type {string} */
phoneNumber;
/** @type {?string} */
birthDate;
/** @type {string} */
birthDateRaw;
/** @type {string} */
address;
/** @type {string} */
address2;
/** @type {string} */
city;
/** @type {string} */
state;
/** @type {string} */
country;
/** @type {string} */
culture;
/** @type {string} */
gender;
/** @type {string} */
language;
/** @type {string} */
mailAddress;
/** @type {string} */
nickname;
/** @type {string} */
postalCode;
/** @type {string} */
timeZone;
}
JavaScript GetUserDetails 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 /account HTTP/1.1
Host: test.servicestack.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { provider: String, userId: String, userName: String, fullName: String, displayName: String, firstName: String, lastName: String, company: String, email: String, phoneNumber: String, birthDate: 0001-01-01, birthDateRaw: String, address: String, address2: String, city: String, state: String, country: String, culture: String, gender: String, language: String, mailAddress: String, nickname: String, postalCode: String, timeZone: String }