Documentation Index
Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints
| Method | Path | Notes |
|---|---|---|
GET | /odis/v1/sizes | Paginated list; any ODIS user |
GET | /odis/v1/sizes/:id | Show one |
POST | /odis/v1/sizes | Admin or editor |
PATCH | /odis/v1/sizes/:id | Admin or editor |
DELETE | /odis/v1/sizes/:id | Admin or editor; may fail if sizes are still in use |
Request bodies
Create (POST):
milliliters— integer, required, unique in the table.display— string, required, unique case-insensitively.
PATCH): same size object with fields to change.
Responses
- List:
{ "total", "has_more", "data" }where each row includesid,milliliters,display. - Show / create / update: a single
Sizeobject with those fields.
Errors
- 422 — validation (duplicate milliliters or display, blank display, etc.), or database uniqueness on milliliters surfaced as a clear message in some cases.
- 403 on mutating methods if the user is not admin or editor.
- Deleting a size that is still referenced may return 422 with a message that the size is still linked to variants.
message error shape.
Example
GET /odis/v1/sizes
POST /odis/v1/sizes

