This page provides a basic guide on how to use the Salesman API.
Endpoint: GET /api/salesmen
Returns a list of all salesmen.
Endpoint: GET /api/salesmen/{salesman_uuid}
Returns detailed information about a specific salesman identified by UUID.
Endpoint: POST /api/salesmen
Creates a new salesman with the provided data.
Endpoint: PUT /api/salesmen/{salesman_uuid}
Updates the information of the specified salesman.
Endpoint: DELETE /api/salesmen/{salesman_uuid}
Deletes the specified salesman.
Endpoint: GET /api/codelists
Returns a list of codelists used in the application.
To interact with the API, you can use tools like curl, Postman, or any HTTP client in your preferred programming language.
Here is an example of how to request the list of salesmen using curl:
curl -X GET "https://salesmen.afroplants.eu/api/salesmen" -H "accept: application/json"