Pecuario.Backend

<back to all web services

GetProfile

Requires Authentication
The following routes are available for this service:
GET/api/v1/profile
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetProfile implements IGet
    {
        
    }

    public static class GetProfileResponse extends BaseResponse
    {
        public String firstName = null;
        public String lastName = null;
        public String userType = null;
        public String phoneNumber = null;
        public String country = null;
        
        public String getFirstName() { return firstName; }
        public GetProfileResponse setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public GetProfileResponse setLastName(String value) { this.lastName = value; return this; }
        public String getUserType() { return userType; }
        public GetProfileResponse setUserType(String value) { this.userType = value; return this; }
        public String getPhoneNumber() { return phoneNumber; }
        public GetProfileResponse setPhoneNumber(String value) { this.phoneNumber = value; return this; }
        public String getCountry() { return country; }
        public GetProfileResponse setCountry(String value) { this.country = 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 GetProfile 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.

GET /api/v1/profile HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"firstName":"String","lastName":"String","userType":"String","phoneNumber":"String","country":"String"}