Welcome to the Salesman API

This page provides a basic guide on how to use the Salesman API.

API Endpoints

Get List of Salesmen

Endpoint: GET /api/salesmen

Returns a list of all salesmen.

Get Salesman Details

Endpoint: GET /api/salesmen/{salesman_uuid}

Returns detailed information about a specific salesman identified by UUID.

Create a New Salesman

Endpoint: POST /api/salesmen

Creates a new salesman with the provided data.

Update Salesman Information

Endpoint: PUT /api/salesmen/{salesman_uuid}

Updates the information of the specified salesman.

Delete a Salesman

Endpoint: DELETE /api/salesmen/{salesman_uuid}

Deletes the specified salesman.

Get Codelists

Endpoint: GET /api/codelists

Returns a list of codelists used in the application.

How to Use

To interact with the API, you can use tools like curl, Postman, or any HTTP client in your preferred programming language.

Example Request

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"