GET | /MyInfo |
---|
"use strict";
export class MyInfo {
constructor(init) { Object.assign(this, init) }
}
export class UserInfo {
/** @param {{id?:number,userAuthId?:string,nickName?:string,firstName?:string,lastName?:string,email?:string,company?:string,phoneNumber?:string,addressLine1?:string,addressLine2?:string,addressCity?:string,addressZip?:string,addressState?:string,addressCountry?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
id;
/** @type {string} */
userAuthId;
/** @type {string} */
nickName;
/** @type {string} */
firstName;
/** @type {string} */
lastName;
/** @type {string} */
email;
/** @type {string} */
company;
/** @type {string} */
phoneNumber;
/** @type {string} */
addressLine1;
/** @type {string} */
addressLine2;
/** @type {string} */
addressCity;
/** @type {string} */
addressZip;
/** @type {string} */
addressState;
/** @type {string} */
addressCountry;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /MyInfo HTTP/1.1 Host: account.servicestack.net Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"id":0,"userAuthId":"String","nickName":"String","firstName":"String","lastName":"String","email":"String","company":"String","phoneNumber":"String","addressLine1":"String","addressLine2":"String","addressCity":"String","addressZip":"String","addressState":"String","addressCountry":"String"}