Drivers

Reference for the API endpoints related to the drivers.

Create a driver

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.

Headers

Name
Type
Description

Content-Type

string

application/json

Authorization

string

Bearer {Access token (J.W.T.)}

Request Body

Name
Type
Description

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.

Empty body.

Get a driver

GET https://journal-de-bord-api.app/api/drivers/{identifier}

This method is used to get the basic information of a driver.

Path Parameters

Name
Type
Description

identifier

string

This is the identifier of the driver. The value should be set to the J.W.T. subject (sub) field.

Headers

Name
Type
Description

Authorization

string

Bearer {Access token (J.W.T.)}

{
    "identifier": <driver's identifier>,
    "objective": <number of kilometers>
}

Last updated

Was this helpful?