General
user
Last Updated: April 19, 2026GET /users Henter alle users (Orion resource). Query params: { “include”: “categories,roles,role,contact,address”, “search”: “string”, “sort”: “first_name”, “page”: 1 } GET /users/{id} Henter en enkelt user. Special case: me → returnerer authenticated user Response: { “id”: 1, “first_name”: “John”, “last_name”: “Doe”, “email”: “[email protected]”, “roles”: [], “contact”: {}, “address”: {} } POST /users Opretter en ny user....
Tags
Last Updated: March 29, 2026Tags API Base path: /tags GET /tags Returns a list of all tags. Supports includes (categories) in the response. GET /tags/{id} Returns a single tag by its ID. POST /tags Creates a new tag.Returns the created tag.Validation rules: name: required array, unique per translation type: optional categories: optional arrayPossible errors: 422 (validation error) PUT/PATCH /tags/{id}...
Sorting
Last Updated: March 29, 2026Sorting API Base path: /sorting POST /sorting/changeChanges the position of a row within a table by updating its sorting order. Description:This endpoint moves a row to a new position based on another row’s position.It automatically adjusts the sorting values of affected rows to maintain correct ordering. Behavior: Finds the current position of the item to...
Roles API
Last Updated: March 29, 2026Roles API Base path: /roles GET /rolesReturns a list of roles. Supports filtering, sorting, and includes. GET /roles/{id}Returns a single role by ID. POST /rolesCreates a new role.Returns the created role.Possible errors: 422 (validation error) PUT/PATCH /roles/{id}Updates an existing role.Returns the updated role.Possible errors: 422 (validation error), 404 (role not found) DELETE /roles/{id}Deletes a role.Returns...
Categories
Last Updated: April 19, 2026🗂️ CATEGORIES API Base path: /categories GET /categories Henter kategorier (Orion resource). Query params: { “include”: “images,children”, “filter”: { “type”: “string”, “id”: 1, “parent_id”: 2 }, “sort”: “sorting”, “orderBy”: “name | id”, “search”: “string” } GET /categories/tree Returnerer kategorier som tree struktur. Query params: { “type”: “product,blog”, “include”: “images,children”, “orderBy”: “name | id”, “flat”: false,...
Auth
Last Updated: April 19, 2026🔑 POST /auth/login Logger en bruger ind og returnerer user + token. Request body: { “email”: “[email protected]”, “password”: “string”, “remember”: true, “include”: “profile,roles” // optional } Response: { “user”: { }, “token”: “string” } 🚪 POST / GET /auth/logout Logger brugeren ud. Request body (optional): { “logoutAllDevices”: false, “logoutOtherDevices”: false, “password”: “string” } Response: {...
