Assemblies

GET List Assemblies bearer {{baseUrl}}/assemblies

Query Parameters

ParamExemple
gamme

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/assemblies' \
  -H 'Authorization: Bearer <token>'
POST Create Assembly bearer {{baseUrl}}/assemblies

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>'
GET Get Assembly bearer {{baseUrl}}/assemblies/1

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/assemblies/1' \
  -H 'Authorization: Bearer <token>'
PUT Update Assembly bearer {{baseUrl}}/assemblies/1

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>'
DELETE Delete Assembly bearer {{baseUrl}}/assemblies/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/assemblies/1' \
  -H 'Authorization: Bearer <token>'
GET Get Assembly Parts (BOM) bearer {{baseUrl}}/assemblies/1/parts

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/assemblies/1/parts' \
  -H 'Authorization: Bearer <token>'
POST Add Part to Assembly bearer {{baseUrl}}/assemblies/1/parts

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>'
PUT Update Part in Assembly bearer {{baseUrl}}/assemblies/1/parts/1

Request Body (JSON)

{
    "quantity": 6
}

Exemple cURL

curl -X PUT \
  'http://localhost:8082/api/v1/assemblies/1/parts/1' \
  -H 'Authorization: Bearer <token>'
DELETE Remove Part from Assembly bearer {{baseUrl}}/assemblies/1/parts/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/assemblies/1/parts/1' \
  -H 'Authorization: Bearer <token>'

Auth

POST Login none {{baseUrl}}/auth/login

Request Body (JSON)

{
    "phone": "{{phone}}",
    "code": "{{code}}"
}

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/auth/login'
POST LoginByCredentials none {{baseUrl}}/auth/login

Request Body (JSON)

{
    "username": "{{email}}",
    "password": "{{password}}"
}

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/auth/login'
POST Logout bearer {{baseUrl}}/auth/logout

Pas de paramètres.

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/auth/logout' \
  -H 'Authorization: Bearer <token>'
GET Me bearer {{baseUrl}}/auth/me

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/auth/me' \
  -H 'Authorization: Bearer <token>'

Calendar

GET List Calendar Slots bearer {{baseUrl}}/projects/1/calendar

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects/1/calendar' \
  -H 'Authorization: Bearer <token>'
POST Create Calendar Slot bearer {{baseUrl}}/projects/1/calendar

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>'
POST Book Slot bearer {{baseUrl}}/projects/1/calendar/1/book

Request Body (JSON)

[]

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/projects/1/calendar/1/book' \
  -H 'Authorization: Bearer <token>'
DELETE Delete Slot bearer {{baseUrl}}/projects/1/calendar/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/projects/1/calendar/1' \
  -H 'Authorization: Bearer <token>'

DocumentTypes

GET List Document Types bearer {{baseUrl}}/document-types

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/document-types' \
  -H 'Authorization: Bearer <token>'
POST Create Document Type bearer {{baseUrl}}/document-types

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>'
GET Get Document Type bearer {{baseUrl}}/document-types/1

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/document-types/1' \
  -H 'Authorization: Bearer <token>'
PUT Update Document Type bearer {{baseUrl}}/document-types/1

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>'
DELETE Delete Document Type bearer {{baseUrl}}/document-types/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/document-types/1' \
  -H 'Authorization: Bearer <token>'

Documents

GET List Project Documents bearer {{baseUrl}}/projects/1/documents

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects/1/documents' \
  -H 'Authorization: Bearer <token>'
POST Create Project Document bearer {{baseUrl}}/projects/1/documents

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>'
PUT Update Document bearer {{baseUrl}}/documents/1

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>'
DELETE Delete Document bearer {{baseUrl}}/documents/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/documents/1' \
  -H 'Authorization: Bearer <token>'
GET Download Document bearer {{baseUrl}}/documents/1/download

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/documents/1/download' \
  -H 'Authorization: Bearer <token>'

Events

GET List Events bearer {{baseUrl}}/events

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/events' \
  -H 'Authorization: Bearer <token>'
GET Stream Events (SSE) bearer {{baseUrl}}/events

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/events' \
  -H 'Authorization: Bearer <token>'

Labels

GET List Labels CE bearer {{baseUrl}}/labels

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/labels' \
  -H 'Authorization: Bearer <token>'
POST Create Label CE bearer {{baseUrl}}/labels

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>'
GET Get Label CE bearer {{baseUrl}}/labels/1

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/labels/1' \
  -H 'Authorization: Bearer <token>'
GET Print Label CE (HTML + QR) bearer {{baseUrl}}/labels/1/print

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/labels/1/print' \
  -H 'Authorization: Bearer <token>'
PUT Update Label bearer {{baseUrl}}/labels/1

Request Body (JSON)

{
    "login": "machine-updated"
}

Exemple cURL

curl -X PUT \
  'http://localhost:8082/api/v1/labels/1' \
  -H 'Authorization: Bearer <token>'
DELETE Delete Label bearer {{baseUrl}}/labels/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/labels/1' \
  -H 'Authorization: Bearer <token>'

Parts

GET List Parts bearer {{baseUrl}}/parts

Query Parameters

ParamExemple
gamme
type
search

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/parts' \
  -H 'Authorization: Bearer <token>'
POST Create Part bearer {{baseUrl}}/parts

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>'
POST Import Parts (XLSX) bearer {{baseUrl}}/parts/import

Form Parameters

FieldValue
file@file(fixtures/parts.xlsx)

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/parts/import' \
  -H 'Authorization: Bearer <token>'
GET Get Part bearer {{baseUrl}}/parts/1

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/parts/1' \
  -H 'Authorization: Bearer <token>'
PUT Update Part bearer {{baseUrl}}/parts/1

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>'
DELETE Delete Part bearer {{baseUrl}}/parts/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/parts/1' \
  -H 'Authorization: Bearer <token>'
GET Get Part Stock bearer {{baseUrl}}/parts/1/stock

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/parts/1/stock' \
  -H 'Authorization: Bearer <token>'

Projects

GET List Projects bearer {{baseUrl}}/projects

Query Parameters

ParamExemple
viewkanban
statusin_progress
squad_id
assigned_to

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects' \
  -H 'Authorization: Bearer <token>'
POST Create Project bearer {{baseUrl}}/projects

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>'
GET Get Project bearer {{baseUrl}}/projects/1

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects/1' \
  -H 'Authorization: Bearer <token>'
PUT Update Project bearer {{baseUrl}}/projects/20

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>'
DELETE Delete Project bearer {{baseUrl}}/projects/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/projects/1' \
  -H 'Authorization: Bearer <token>'
PATCH Patch Status bearer {{baseUrl}}/projects/1/status

Request Body (JSON)

{
    "status": "in_progress"
}

Exemple cURL

curl -X PATCH \
  'http://localhost:8082/api/v1/projects/1/status' \
  -H 'Authorization: Bearer <token>'
PATCH Patch Squad bearer {{baseUrl}}/projects/1/squad

Request Body (JSON)

{
    "squad_id": 2
}

Exemple cURL

curl -X PATCH \
  'http://localhost:8082/api/v1/projects/1/squad' \
  -H 'Authorization: Bearer <token>'
GET Get Timeline (Gantt) bearer {{baseUrl}}/projects/1/timeline

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects/1/timeline' \
  -H 'Authorization: Bearer <token>'
GET Get Client View bearer {{baseUrl}}/projects/1/client-view

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects/1/client-view' \
  -H 'Authorization: Bearer <token>'
GET Get Project Parts bearer {{baseUrl}}/projects/1/parts

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects/1/parts' \
  -H 'Authorization: Bearer <token>'
GET List Project Sub-Projects bearer {{baseUrl}}/projects/1/sub-projects

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects/1/sub-projects' \
  -H 'Authorization: Bearer <token>'
POST Post Project Parts bearer {{baseUrl}}/projects/1/parts

Request Body (JSON)

{
    "part_ids": [
        1
    ]
}

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/projects/1/parts' \
  -H 'Authorization: Bearer <token>'
POST Create Project Sub-Project bearer {{baseUrl}}/projects/1/sub-projects

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

GET Ref — Product Types none {{baseUrl}}/ref/product-types

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/ref/product-types'
GET Ref — Gammes none {{baseUrl}}/ref/gammes

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/ref/gammes'
GET Ref — Statuses none {{baseUrl}}/ref/statuses

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/ref/statuses'
POST Create Gamme bearer {{baseUrl}}/ref/gammes

Request Body (JSON)

{
    "name": "Test Gamme",
    "threshold": 5
}

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/ref/gammes' \
  -H 'Authorization: Bearer <token>'
GET Ref — Roles none {{baseUrl}}/ref/roles

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/ref/roles'
PUT Update Gamme bearer {{baseUrl}}/ref/gammes/1

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>'
GET Ref — Eisenhower Matrix none {{baseUrl}}/ref/eisenhower

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/ref/eisenhower'
DELETE Delete Gamme bearer {{baseUrl}}/ref/gammes/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/ref/gammes/1' \
  -H 'Authorization: Bearer <token>'

Squads

GET List Squads bearer {{baseUrl}}/squads

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/squads' \
  -H 'Authorization: Bearer <token>'
POST Create Squad bearer {{baseUrl}}/squads

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>'
GET Get Squad bearer {{baseUrl}}/squads/1

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/squads/1' \
  -H 'Authorization: Bearer <token>'
PUT Update Squad bearer {{baseUrl}}/squads/1

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>'
DELETE Delete Squad bearer {{baseUrl}}/squads/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/squads/1' \
  -H 'Authorization: Bearer <token>'
GET Get Squad Members bearer {{baseUrl}}/squads/1/members

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/squads/1/members' \
  -H 'Authorization: Bearer <token>'
POST Add Member to Squad bearer {{baseUrl}}/squads/1/members

Request Body (JSON)

{
    "user_id": 4
}

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/squads/1/members' \
  -H 'Authorization: Bearer <token>'
DELETE Remove Member from Squad bearer {{baseUrl}}/squads/1/members/4

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/squads/1/members/4' \
  -H 'Authorization: Bearer <token>'

Stocks

GET List Stocks bearer {{baseUrl}}/stocks

Query Parameters

ParamExemple
gamme

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/stocks' \
  -H 'Authorization: Bearer <token>'
GET List Stock Movements bearer {{baseUrl}}/stock-movements

Query Parameters

ParamExemple
part_id
type
project_id

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/stock-movements' \
  -H 'Authorization: Bearer <token>'
POST Create Stock Movement bearer {{baseUrl}}/stock-movements

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

GET List Sub-Projects bearer {{baseUrl}}/projects/1/sub-projects

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/projects/1/sub-projects' \
  -H 'Authorization: Bearer <token>'
POST Create Sub-Project bearer {{baseUrl}}/projects/1/sub-projects

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>'
GET Get Sub-Project bearer {{baseUrl}}/sub-projects/1

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/sub-projects/1' \
  -H 'Authorization: Bearer <token>'
PUT Update Sub-Project bearer {{baseUrl}}/sub-projects/1

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>'
DELETE Delete Sub-Project bearer {{baseUrl}}/sub-projects/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/sub-projects/1' \
  -H 'Authorization: Bearer <token>'
PATCH Patch Status bearer {{baseUrl}}/sub-projects/1/status

Request Body (JSON)

{
    "status": "finished"
}

Exemple cURL

curl -X PATCH \
  'http://localhost:8082/api/v1/sub-projects/1/status' \
  -H 'Authorization: Bearer <token>'
GET List Sub-Project Tasks bearer {{baseUrl}}/sub-projects/1/tasks

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/sub-projects/1/tasks' \
  -H 'Authorization: Bearer <token>'
POST Create Sub-Project Task bearer {{baseUrl}}/sub-projects/1/tasks

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

GET Dependencies › List Task Dependencies bearer {{baseUrl}}/tasks/1/dependencies

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/tasks/1/dependencies' \
  -H 'Authorization: Bearer <token>'
GET List Tasks bearer {{baseUrl}}/sub-projects/1/tasks

Query Parameters

ParamExemple
importance
urgency
status
assignee_id

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/sub-projects/1/tasks' \
  -H 'Authorization: Bearer <token>'
GET Comments › List Comments bearer {{baseUrl}}/tasks/1/comments

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/tasks/1/comments' \
  -H 'Authorization: Bearer <token>'
GET Attachments › List Attachments bearer {{baseUrl}}/tasks/1/attachments

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/tasks/1/attachments' \
  -H 'Authorization: Bearer <token>'
POST Create Task bearer {{baseUrl}}/sub-projects/1/tasks

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>'
POST Dependencies › Create Task Dependency bearer {{baseUrl}}/tasks/1/dependencies

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>'
POST Comments › Create Comment bearer {{baseUrl}}/tasks/1/comments

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>'
POST Attachments › Upload Attachment bearer {{baseUrl}}/tasks/1/attachments

Form Parameters

FieldValue
file@file(fixtures/attachment.pdf)

Exemple cURL

curl -X POST \
  'http://localhost:8082/api/v1/tasks/1/attachments' \
  -H 'Authorization: Bearer <token>'
GET My Tasks bearer {{baseUrl}}/tasks/my

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/tasks/my' \
  -H 'Authorization: Bearer <token>'
DELETE Dependencies › Delete Task Dependency bearer {{baseUrl}}/tasks/1/dependencies/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/tasks/1/dependencies/1' \
  -H 'Authorization: Bearer <token>'
DELETE Comments › Delete Comment bearer {{baseUrl}}/tasks/1/comments/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/tasks/1/comments/1' \
  -H 'Authorization: Bearer <token>'
DELETE Attachments › Delete Attachment bearer {{baseUrl}}/tasks/1/attachments/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/tasks/1/attachments/1' \
  -H 'Authorization: Bearer <token>'
GET Get Task bearer {{baseUrl}}/tasks/1

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/tasks/1' \
  -H 'Authorization: Bearer <token>'
PUT Update Task bearer {{baseUrl}}/tasks/1

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>'
DELETE Delete Task bearer {{baseUrl}}/tasks/1

Pas de paramètres.

Exemple cURL

curl -X DELETE \
  'http://localhost:8082/api/v1/tasks/1' \
  -H 'Authorization: Bearer <token>'
PATCH Patch Status bearer {{baseUrl}}/tasks/1/status

Request Body (JSON)

{
    "status": "finished"
}

Exemple cURL

curl -X PATCH \
  'http://localhost:8082/api/v1/tasks/1/status' \
  -H 'Authorization: Bearer <token>'
PUT Update Assignee bearer {{baseUrl}}/tasks/1/assignee

Request Body (JSON)

{
    "assignee_id": 3
}

Exemple cURL

curl -X PUT \
  'http://localhost:8082/api/v1/tasks/1/assignee' \
  -H 'Authorization: Bearer <token>'
GET Get Task Counts bearer {{baseUrl}}/tasks/counts

Pas de paramètres.

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/tasks/counts' \
  -H 'Authorization: Bearer <token>'

Workers

GET List Workers bearer {{baseUrl}}/workers?enterprise={{enterprise_uuid}}

Query Parameters

ParamExemple
enterprise{{enterprise_uuid}}
~role!external
~has_nametrue

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/workers?enterprise={1}' \
  -H 'Authorization: Bearer <token>'
GET Get Worker bearer {{baseUrl}}/workers/1?enterprise={{enterprise_uuid}}

Query Parameters

ParamExemple
enterprise{{enterprise_uuid}}

Exemple cURL

curl -X GET \
  'http://localhost:8082/api/v1/workers/1?enterprise={1}' \
  -H 'Authorization: Bearer <token>'

Environments

local

VariableValue
{{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}}