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:
parent
152ee2b5a2
commit
382f181ced
4 changed files with 87 additions and 1 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
info:
|
||||
name: IncoSheets
|
||||
type: folder
|
||||
seq: 3
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue