Pecuario.Backend

<back to all web services

SetDeviceIdConfirm

The following routes are available for this service:
POST/api/v1/set-deviceId/confirm
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SetDeviceIdConfirm
    {
        public String token = null;
        public String phoneNumber = null;
        public String deviceId = null;
        
        public String getToken() { return token; }
        public SetDeviceIdConfirm setToken(String value) { this.token = value; return this; }
        public String getPhoneNumber() { return phoneNumber; }
        public SetDeviceIdConfirm setPhoneNumber(String value) { this.phoneNumber = value; return this; }
        public String getDeviceId() { return deviceId; }
        public SetDeviceIdConfirm setDeviceId(String value) { this.deviceId = value; return this; }
    }

    public static class SetDeviceIdConfirmResponse extends BaseResponse
    {
        public String bearerToken = null;
        
        public String getBearerToken() { return bearerToken; }
        public SetDeviceIdConfirmResponse setBearerToken(String value) { this.bearerToken = value; return this; }
    }

    public static class BaseResponse
    {
        public Status status = null;
        
        public Status getStatus() { return status; }
        public BaseResponse setStatus(Status value) { this.status = value; return this; }
    }

    public static class Status
    {
        public String message = null;
        public Integer statusCode = null;
        
        public String getMessage() { return message; }
        public Status setMessage(String value) { this.message = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public Status setStatusCode(Integer value) { this.statusCode = value; return this; }
    }

}

Java SetDeviceIdConfirm DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/v1/set-deviceId/confirm HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"token":"String","phoneNumber":"String","deviceId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"bearerToken":"String"}