Drivers
Reference for the API endpoints related to the drivers.
Last updated
Reference for the API endpoints related to the drivers.
Last updated
POST
https://journal-de-bord-api.app/api/drivers
Create a new driver. You need to create a new driver to create a new journal.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
https://journal-de-bord-api.app/api/drivers/{identifier}
This method is used to get the basic information of a driver.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Content-Type
string
application/json
Authorization
string
Bearer {Access token (J.W.T.)}
identifier
string
This is a unique string. This should be the user identifier provided by the authorization server.
objective
number
This is the number of kilometres the drivers wants to reach at the end of his training.
identifier
string
This is the identifier of the driver. The value should be set to the J.W.T. subject (sub) field.
Authorization
string
Bearer {Access token (J.W.T.)}