API ReferenceView as MarkdownOpenAPI

Medproduct

View as Markdown

Endpoints that need a token: the site owner creates it in their admin (Developers > API reference). AI assistants: how to ask the user for one.

5 endpoints.

Retrieve the medproduct

Returns the medproduct.

Public

Public - no token needed.

Query parameters
dependability_filterstring

Only medproducts with this dependability filter.

no_populatestring

Only medproducts with this no populate.

Status codes

200 500

GET/medproduct
curl -X GET 'http://www.dance-with-elatitza.com/medproduct?ionic=true&dependability_filter=...&no_populate=...'

Create a medproduct

Creates a medproduct from the fields sent.

User token

Needs the token of a signed-in user.

Status codes

201 400 401 500

POST/medproduct
curl -X POST 'http://www.dance-with-elatitza.com/medproduct?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'

Retrieve a medproduct

Returns one medproduct, found by its ID.

Public

Public - no token needed.

Path parameters
idstringRequired

The ID of the medproduct.

Query parameters
no_populatestring

Only medproducts with this no populate.

Status codes

200 404 500

GET/medproduct/:id
curl -X GET 'http://www.dance-with-elatitza.com/medproduct/{id}?ionic=true&no_populate=...'

Update a medproduct

Changes the fields sent; the others stay as they are.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the medproduct.

Status codes

200 400 401 404 500

PATCH/medproduct/:id
curl -X PATCH 'http://www.dance-with-elatitza.com/medproduct/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'

Delete a medproduct

Deletes the medproduct. This cannot be undone.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the medproduct.

Returns

Returns an empty answer on success.

Status codes

200 401 404 500

DELETE/medproduct/:id
curl -X DELETE 'http://www.dance-with-elatitza.com/medproduct/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
↑↓ Navigate↵ GoEsc Close