Pecuario.Backend

<back to all web services

LoginRequest

The following routes are available for this service:
All Verbs/api/v1/login
import java.math.*
import java.util.*
import net.servicestack.client.*


open class LoginRequest : IPost
{
    var phoneNumber:String? = null
    var deviceId:String? = null
}

open class LoginResponse : BaseResponse()
{
    var bearerToken:String? = null
}

open class BaseResponse
{
    var status:Status? = null
}

open class Status
{
    var message:String? = null
    var statusCode:Int? = null
}

Kotlin LoginRequest DTOs

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

HTTP + CSV

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

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

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

{"bearerToken":"String"}