All Verbs | /citizen/register |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class RegisterCitizenRQ
{
public String Id = null;
public String Email = null;
public String DisplayName = null;
public String PhoneNumber = null;
public Long Provider = null;
public String ProviderId = null;
public String MobileId = null;
public String MobileOS = null;
public String Password = null;
public String CreatedUser = null;
public String getId() { return Id; }
public RegisterCitizenRQ setId(String value) { this.Id = value; return this; }
public String getEmail() { return Email; }
public RegisterCitizenRQ setEmail(String value) { this.Email = value; return this; }
public String getDisplayName() { return DisplayName; }
public RegisterCitizenRQ setDisplayName(String value) { this.DisplayName = value; return this; }
public String getPhoneNumber() { return PhoneNumber; }
public RegisterCitizenRQ setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
public Long getProvider() { return Provider; }
public RegisterCitizenRQ setProvider(Long value) { this.Provider = value; return this; }
public String getProviderId() { return ProviderId; }
public RegisterCitizenRQ setProviderId(String value) { this.ProviderId = value; return this; }
public String getMobileId() { return MobileId; }
public RegisterCitizenRQ setMobileId(String value) { this.MobileId = value; return this; }
public String getMobileOS() { return MobileOS; }
public RegisterCitizenRQ setMobileOS(String value) { this.MobileOS = value; return this; }
public String getPassword() { return Password; }
public RegisterCitizenRQ setPassword(String value) { this.Password = value; return this; }
public String getCreatedUser() { return CreatedUser; }
public RegisterCitizenRQ setCreatedUser(String value) { this.CreatedUser = value; return this; }
}
public static class RegisterCitizenRS extends CoreRS
{
public String Data = null;
public String getData() { return Data; }
public RegisterCitizenRS setData(String value) { this.Data = value; return this; }
}
public static class CoreRS
{
public String Code = null;
public String ErrorMessage = null;
public String ErrorStackTrace = null;
public String getCode() { return Code; }
public CoreRS setCode(String value) { this.Code = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public CoreRS setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public String getErrorStackTrace() { return ErrorStackTrace; }
public CoreRS setErrorStackTrace(String value) { this.ErrorStackTrace = value; return this; }
}
}
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.
POST /citizen/register HTTP/1.1
Host: ws.jimsnwa.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":"String","Email":"String","DisplayName":"String","PhoneNumber":"String","Provider":0,"ProviderId":"String","MobileId":"String","MobileOS":"String","Password":"String","CreatedUser":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Data":"String","Code":"String","ErrorMessage":"String","ErrorStackTrace":"String"}