Authentication

Management of authentication tokens.

post

Creates a new, short-lived (2 weeks) authentication token for a user.

The authenticated user is also included in the response. Frontends may want to use the roles array to know what the user is authorized to do.

Locations

Management of BioPocket locations of interest.

post

Create a new location.

get

List locations.

get

Retrieve a single location.

patch

Update a location.

This is a partial update: you may omit required properties. Only properties sent in the request body will be updated. Optional properties can be removed by setting them to null.

The geometry property must be sent in its entirety to be updated, i.e. it must be a full, valid GeoJSON point (for example, it's not possible to only send its coordinates property).

delete

Delete a location.

Account

Management of your user account.

get

Retrieve your own user account.

Users

Management of BioPocket user accounts.

get

Retrieve a user account.