Resource
Endpoints
Create new resource
| /companies/{companycode}/establishments/{establishmentcode}/resources | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
| Body | body | 
Get entity list
| /companies/{companycode}/establishments/{establishmentcode}/resources | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
| Query | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < ResourceDTO > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/establishments/{establishmentcode}/resources/import | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
| Body | body | 
Get one resource
| /companies/{companycode}/establishments/{establishmentcode}/resources/{code} | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity code to retrieve | string | 10 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
Delete resource
| /companies/{companycode}/establishments/{establishmentcode}/resources/{code} | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity public uuid code to delete | string | 10 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
Data structure
ResourceDTO
| Name | Description | Value | Business Rules | ||
|---|---|---|---|---|---|
| areaCode | string | 10 characters max | |||
| code | Resource code | string | 10 characters max | ||
| companyCode | Current company code | string | 2 characters max | ||
| establishmentCode | Current establishment code | string | 2 characters max | ||
| hierarchies | GroupLink list | ||||
| hoursPerTeam | double | ||||
| imageCode | string | ||||
| label | Resource label | string | 50 characters max | ||
| maxOpeningCalendarCode | string | 10 characters max | |||
| nature | Resource nature | string | IN(MACHINE=Machine,LABOR=Labor,STORAGE=Storage) | ||
| openingCalendarCode | string | 10 characters max | |||
| publicUuid | Resource public uuid | string | |||
| validityEndDate | datetime | YYYY-MM-DDTHH:MM:SSZ | |||
| workshopType | string | IN(PRODUCTION_LINE=Production line,SKILL=Skill) | |||
| laborType | 
 | string | 
ImportResourceList
| Name | Value | 
|---|---|
| callback | string | 
| data | ResourceDTO list |