Deviations

Endpoints

Get Deviations

Description

This endpoint allows to get a list of deviations by selecting : a company code, an establishment code and a range of deviation’s creation dates (from / to).

/companies/{companycode}/establishments/{establishmentcode}/deviations

Parameters

Type Name Description Schema Associated rules

Path

companyCode
required

Current context company code

string

Path

establishmentCode
required

Current context establishment code

string

Query

page
required

Page index

int

Query

size
required

Entity count per page

int

Query

from
required

Deviation created since

datetime (ISO-8601)

R1

Query

to
optional

To get a range in the past : Deviation created / to

datetime (ISO-8601)

R1

Rules

R1

If from and to are both set, from should be before to.

Responses

HTTP Code Description Schema

200

Successfully created

400

Functionnal error

No Content

500

Internal server error

No Content

Consumes

  • application/json

Produces

  • application/json