API V1 (v1)

Download OpenAPI specification:Download

Users

Register a user

Responses

Response samples

Content type
application/json
{
  • "username": "string",
  • "email": "string",
  • "password": "string"
}

Login user

Responses

Response samples

Content type
application/json
{
  • "status": {
    },
  • "data": {
    }
}

Logout user

Authorizations:
None
header Parameters
Authorization
required
string

Responses

Cars

Retrieves all the bridal cars available

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Retrieves details of a particular car

path Parameters
car_id
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "model": "string",
  • "photo": "string",
  • "price": 0,
  • "description": "string",
  • "reserved": true
}

Add a new car

query Parameters
name
string

Name of the car

model
string

Model of the car

price
string

Reserve fare

description
string

Description of the car

photo
string

Car photo URL

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "model": "string",
  • "price": 0,
  • "description": "string",
  • "photo": "string"
}

Delete a car

path Parameters
car_id
required
integer

Id of the car to delete

Responses

Reserve

Reserve a car

Responses

Response samples

Content type
application/json
{
  • "car": {
    },
  • "reservation": {
    }
}