Criterion
Endpoints
Get entity list
| /companies/{companycode}/criteria | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company 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 | < Criterion > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Data structure
Criterion
Criterion data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| allowedValues | AllowedValue list | ||
| code | Criterion code | String | 10 characters max | 
| companyCode | Current company code | String | 2 characters max | 
| establishments | |||
| format | Deprecated | ||
| hierarchies | Hierarchy list | ||
| imageCode | Image code | String | |
| label | Criterion label | String | 50 characters max | 
| publicUuid | String | ||
| tags | Tag list | ||
| type | Criterion type | String | in(INTEGER, DECIMAL, STRING, BOOLEAN, DATE) | 
| unitCode | String | ||
| validityEndDate | datetime | YYYY-MM-DDTHH:MM:SSZ | 
AllowedValue
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| code | String | 10 characters max | |
| label | String | 50 characters max | |
| imageCode | String | ||
| defaultValue | boolean | false by default |