Base URL:
https://ancor.load.digital/api
Authentication:
- JWT Token via POST /api/users/login
- Header: Authorization: Bearer <JWT_TOKEN>
Collections:
- List: GET /api/<collection>?where[field][equals]=value
&limit=10
&page=1
&sort[field]=asc
&depth=1
- Single: GET /api/<collection>/:id
- Create: POST /api/<collection>
- Update: PATCH /api/<collection>/:id
- Replace: PUT /api/<collection>/:id
- Delete: DELETE /api/<collection>/:id
Globals:
- Get: GET /api/globals/<slug>
- Update: PATCH /api/globals/<slug>
Media (images & attachments):
- Upload: POST /api/<collection> (form-data file)
- List: GET /api/<collection>
- Get: GET /api/<collection>/:id
- Delete: DELETE /api/<collection>/:id
Common Operators:
- equals, ne, gt, lt, gte, lte, in, nin, contains
Use ?depth=n to populate relations, and custom endpoints & hooks via config.