SmartLockers Tasks API
102 endpoints — generated 2026-03-27 22:18
Assemblies
Query Parameters
| Param | Exemple |
|---|---|
gamme | — |
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/assemblies' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Wien 8 casiers standard",
"gamme": 1,
"version": "A"
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/assemblies' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/assemblies/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Wien 8 casiers v2",
"version": "B"
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/assemblies/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/assemblies/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/assemblies/1/parts' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"part_id": 3,
"quantity": 4
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/assemblies/1/parts' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"quantity": 6
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/assemblies/1/parts/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/assemblies/1/parts/1' \ -H 'Authorization: Bearer <token>'
Auth
Request Body (JSON)
{
"phone": "{{phone}}",
"code": "{{code}}"
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/auth/login'
Request Body (JSON)
{
"username": "{{email}}",
"password": "{{password}}"
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/auth/login'
Pas de paramètres.
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/auth/logout' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/auth/me' \ -H 'Authorization: Bearer <token>'
Calendar
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects/1/calendar' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"date": "2027-05-10",
"duration_hours": 4
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/projects/1/calendar' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
[]
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/projects/1/calendar/1/book' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/projects/1/calendar/1' \ -H 'Authorization: Bearer <token>'
DocumentTypes
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/document-types' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Rapport de chantier",
"mode": "file"
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/document-types' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/document-types/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Rapport de chantier updated",
"mode": "both"
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/document-types/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/document-types/1' \ -H 'Authorization: Bearer <token>'
Documents
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects/1/documents' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"type_id": 1,
"name": "Maquettes",
"mode": "link",
"url": "https:\/\/figma.com\/project-mock"
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/projects/1/documents' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Maquettes v2",
"url": "https:\/\/figma.com\/project-mock-v2"
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/documents/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/documents/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/documents/1/download' \ -H 'Authorization: Bearer <token>'
Events
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/events' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/events' \ -H 'Authorization: Bearer <token>'
Labels
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/labels' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"uuid": "00000000-0000-0000-0000-000000000001",
"login": "WIEN_001",
"commissioned": "01\/2026",
"model": "Wien 8C",
"power": "230Vac \/ 16A \/ 30mA \/ 150W"
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/labels' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/labels/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/labels/1/print' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"login": "machine-updated"
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/labels/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/labels/1' \ -H 'Authorization: Bearer <token>'
Parts
Query Parameters
| Param | Exemple |
|---|---|
gamme | — |
type | — |
search | — |
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/parts' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"reference": "SupportRPI",
"gamme": 1,
"type": "T",
"revision": "B",
"designation": "Support Raspberry Pi"
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/parts' \ -H 'Authorization: Bearer <token>'
Form Parameters
| Field | Value |
|---|---|
file | @file(fixtures/parts.xlsx) |
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/parts/import' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/parts/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"revision": "B",
"designation": "Plaque frontale Wien v2"
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/parts/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/parts/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/parts/1/stock' \ -H 'Authorization: Bearer <token>'
Projects
Query Parameters
| Param | Exemple |
|---|---|
view | kanban |
status | in_progress |
squad_id | — |
assigned_to | — |
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Nouveau projet",
"status": "planned",
"squad_id": 1
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/projects' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Nom modifié",
"status": "in_progress"
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/projects/20' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/projects/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"status": "in_progress"
}
Exemple cURL
curl -X PATCH \ 'http://localhost:8082/api/v1/projects/1/status' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"squad_id": 2
}
Exemple cURL
curl -X PATCH \ 'http://localhost:8082/api/v1/projects/1/squad' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects/1/timeline' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects/1/client-view' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects/1/parts' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects/1/sub-projects' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"part_ids": [
1
]
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/projects/1/parts' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Installation réseau",
"importance": "high",
"urgency": "high",
"squad_id": 1
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/projects/1/sub-projects' \ -H 'Authorization: Bearer <token>'
Ref
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/ref/product-types'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/ref/gammes'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/ref/statuses'
Request Body (JSON)
{
"name": "Test Gamme",
"threshold": 5
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/ref/gammes' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/ref/roles'
Request Body (JSON)
{
"name": "Test Gamme Updated",
"threshold": 10
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/ref/gammes/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/ref/eisenhower'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/ref/gammes/1' \ -H 'Authorization: Bearer <token>'
Squads
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/squads' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Équipe Wien",
"leader_id": 2,
"color": "#3498db"
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/squads' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/squads/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Équipe modifiée",
"leader_id": 3,
"color": "#e74c3c"
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/squads/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/squads/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/squads/1/members' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"user_id": 4
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/squads/1/members' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/squads/1/members/4' \ -H 'Authorization: Bearer <token>'
Stocks
Query Parameters
| Param | Exemple |
|---|---|
gamme | — |
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/stocks' \ -H 'Authorization: Bearer <token>'
Query Parameters
| Param | Exemple |
|---|---|
part_id | — |
type | — |
project_id | — |
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/stock-movements' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"part_id": 1,
"quantity": 10,
"type": "in",
"note": "Réception commande fournisseur",
"project_id": null
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/stock-movements' \ -H 'Authorization: Bearer <token>'
SubProjects
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/projects/1/sub-projects' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Installation réseau",
"importance": "high",
"urgency": "high",
"squad_id": 1
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/projects/1/sub-projects' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/sub-projects/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Nom modifié",
"importance": "low",
"urgency": "low",
"squad_id": 1
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/sub-projects/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/sub-projects/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"status": "finished"
}
Exemple cURL
curl -X PATCH \ 'http://localhost:8082/api/v1/sub-projects/1/status' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/sub-projects/1/tasks' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Souder rail",
"assignee_id": 1,
"importance": "high",
"urgency": "high",
"description": ""
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/sub-projects/1/tasks' \ -H 'Authorization: Bearer <token>'
Tasks
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/tasks/1/dependencies' \ -H 'Authorization: Bearer <token>'
Query Parameters
| Param | Exemple |
|---|---|
importance | — |
urgency | — |
status | — |
assignee_id | — |
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/sub-projects/1/tasks' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/tasks/1/comments' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/tasks/1/attachments' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"name": "Souder rail",
"assignee_id": 1,
"importance": "high",
"urgency": "high",
"description": ""
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/sub-projects/1/tasks' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"depends_on_task_id": 2
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/tasks/1/dependencies' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"content": "Câblage terminé, reste la config SW."
}
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/tasks/1/comments' \ -H 'Authorization: Bearer <token>'
Form Parameters
| Field | Value |
|---|---|
file | @file(fixtures/attachment.pdf) |
Exemple cURL
curl -X POST \ 'http://localhost:8082/api/v1/tasks/1/attachments' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/tasks/my' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/tasks/1/dependencies/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/tasks/1/comments/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/tasks/1/attachments/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/tasks/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"title": "Titre modifié",
"importance": "high",
"urgency": "low",
"description": "Description mise à jour",
"sub_project_id": 1
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/tasks/1' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X DELETE \ 'http://localhost:8082/api/v1/tasks/1' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"status": "finished"
}
Exemple cURL
curl -X PATCH \ 'http://localhost:8082/api/v1/tasks/1/status' \ -H 'Authorization: Bearer <token>'
Request Body (JSON)
{
"assignee_id": 3
}
Exemple cURL
curl -X PUT \ 'http://localhost:8082/api/v1/tasks/1/assignee' \ -H 'Authorization: Bearer <token>'
Pas de paramètres.
Exemple cURL
curl -X GET \ 'http://localhost:8082/api/v1/tasks/counts' \ -H 'Authorization: Bearer <token>'
Workers
Query Parameters
| Param | Exemple |
|---|---|
enterprise | {{enterprise_uuid}} |
~role | !external |
~has_name | true |
Exemple cURL
curl -X GET \
'http://localhost:8082/api/v1/workers?enterprise={1}' \
-H 'Authorization: Bearer <token>'Query Parameters
| Param | Exemple |
|---|---|
enterprise | {{enterprise_uuid}} |
Exemple cURL
curl -X GET \
'http://localhost:8082/api/v1/workers/1?enterprise={1}' \
-H 'Authorization: Bearer <token>'Environments
local
| Variable | Value |
|---|---|
{{baseUrl}} | http://localhost:8082/api/v1 |
{{token}} | |
{{phone}} | 33638056100 |
{{code}} | 1234 |
{{manager_phone}} | 33600000102 |
{{manager_code}} | 0102 |
{{manager_token}} | |
{{leader_phone}} | 33600000103 |
{{leader_code}} | 0103 |
{{leader_token}} | |
{{member_phone}} | 33600000104 |
{{member_code}} | 0104 |
{{member_token}} | |
{{client_phone}} | 33600000105 |
{{client_code}} | 0105 |
{{client_token}} | |
{{enterprise_uuid}} | |