API doc for NovoWatt app - Mobile API (1.0.0)

Download OpenAPI specification:

This is the API documentation for User service.

Users

Get all users

Get users by filters

query Parameters
keyword
string

Get users by name, phone,...

page
integer

Page number

per_page
integer

Number of items per page

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "total": 25,
  • "page": 1,
  • "data": [
    ]
}

Get car detail

Get the authenticated user's car information (vehicle license plate, brand, model).

Authorizations:
bearerAuth

Responses

Response samples

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

Update car detail

Update the authenticated user's car information. All fields are optional; only provided fields are updated.

Authorizations:
bearerAuth
Request Body schema: application/json
optional
vehicle_license_plate
string

Vehicle license plate

vehicle_brand
string

Vehicle brand

vehicle_model
string

Vehicle model

Responses

Request samples

Content type
application/json
{
  • "vehicle_license_plate": "ABC-1234",
  • "vehicle_brand": "Tesla",
  • "vehicle_model": "Model 3"
}

Response samples

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