Vehicle Admin API
  1. Auth
Vehicle Admin API
  • Auth
    • Sign In
      POST
  • Vehicles
    • Index
      GET
    • Create
      POST
    • Show
      GET
    • Update
      PATCH
  • Maintenance Reports
    • Index
      GET
    • Create
      POST
    • Show
      GET
    • Update
      PATCH
  • Service Orders
    • Index
      GET
  1. Auth

Sign In

Developing
POST
/users/sign_in
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/users/sign_in' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user": {
        "email": "admin@vehicles.com",
        "password": "password"
    }
}'
Response Response Example
200 - Success
{
    "id": 1,
    "email": "admin@vehicles.com",
    "role": "admin"
}

Request

Body Params application/json
user
object 
required
email
string 
required
password
string 
required
Examples

Responses

🟢200Success
application/json
Body
id
integer 
required
email
string 
required
role
string 
required
🟠401Unauthorized
Modified at 2025-06-13 20:53:05
Next
Index
Built with