| GET, POST | /fibuscan/Auth/reg |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AuthRegRequest
{
public String AuthToken = null;
public String RegToken = null;
public String email = null;
public String getAuthToken() { return AuthToken; }
public AuthRegRequest setAuthToken(String value) { this.AuthToken = value; return this; }
public String getRegToken() { return RegToken; }
public AuthRegRequest setRegToken(String value) { this.RegToken = value; return this; }
public String getEmail() { return email; }
public AuthRegRequest setEmail(String value) { this.email = value; return this; }
}
public static class AuthRegResponse
{
public Boolean Result = null;
public String Fehler = null;
public String Token = null;
public Boolean isResult() { return Result; }
public AuthRegResponse setResult(Boolean value) { this.Result = value; return this; }
public String getFehler() { return Fehler; }
public AuthRegResponse setFehler(String value) { this.Fehler = value; return this; }
public String getToken() { return Token; }
public AuthRegResponse setToken(String value) { this.Token = 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 /fibuscan/Auth/reg HTTP/1.1
Host: ws4.fibudata.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"AuthToken":"String","RegToken":"String","email":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Result":false,"Fehler":"String","Token":"String"}