feat(api): add IncoSheets API endpoints and local environment variables

- Introduced 'Get Inco Sheet' and 'List Inco Sheets' endpoints.
- Updated local environment variables to include INCOSHEET_ID.
This commit is contained in:
Jérémy Munsch 2026-08-14 11:33:18 +02:00
parent 152ee2b5a2
commit 382f181ced
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4
4 changed files with 87 additions and 1 deletions

View file

@ -0,0 +1,19 @@
info:
name: Get Inco Sheet
type: http
seq: 2
http:
method: GET
url: "{{ENDPOINT}}/api/{{APIV1}}/inco-sheets/:employeeId"
params:
- name: employeeId
value: "{{INCOSHEET_ID}}"
type: path
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View file

@ -0,0 +1,57 @@
info:
name: List Inco Sheets
type: http
seq: 1
http:
method: GET
url: "{{ENDPOINT}}/api/{{APIV1}}/inco-sheets?page=1&pageSize=25&sortBy=incoSheetId&sortDirection=Ascending"
params:
- name: page
value: "1"
type: query
description: 1-based page index
- name: pageSize
value: "25"
type: query
description: Number of items per page (max 10000)
- name: offset
value: "0"
type: query
description: Offset for offset-based pagination
disabled: true
- name: limit
value: "25"
type: query
description: Limit for offset-based pagination
disabled: true
- name: since
value: 2026-01-01T00:00:00Z
type: query
description: Filter INCO sheets updated since timestamp (RFC3339)
disabled: true
- name: brands[]
value: M01
type: query
description: Filter by brand code
disabled: true
- name: short
value: "true"
type: query
description: Return short projection if true
disabled: true
- name: sortBy
value: incoSheetId
type: query
description: "Sort column: incoSheetId, createdAt, updatedAt"
- name: sortDirection
value: Ascending
type: query
description: "Sort direction: Ascending or Descending"
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View file

@ -0,0 +1,7 @@
info:
name: IncoSheets
type: folder
seq: 3
request:
auth: inherit

View file

@ -8,4 +8,7 @@ variables:
description: ""
- name: EMPLOYEE_ID
value: "01155902"
description: "Employee public matricule (7-8 digits)"
description: Employee public matricule (7-8 digits)
- name: INCOSHEET_ID
value: "1"
description: Arcadia ID of an IncoSheet