Pecuario.Backend

<back to all web services

RegisterConfirm

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

public class dtos
{

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

    public static class RegisterConfirmResponse extends BaseResponse
    {
        public String registrationToken = null;
        
        public String getRegistrationToken() { return registrationToken; }
        public RegisterConfirmResponse setRegistrationToken(String value) { this.registrationToken = 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 RegisterConfirm DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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

POST /api/v1/register/confirm HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"phoneNumber":"String","token":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"registrationToken":"String"}