GET/production-api/department/getall

Retrieves all active ProductionDepartments

AuthorizationBearer <token>

Access Token used to access this API (JWT bearer token).

In: header

Response Body

application/json

curl -X GET "https://example.com/production-api/department/getall"
[  {    "id": 0,    "code": "string",    "name": "string",    "deliveryTime": 0,    "defaultProductionPackageId": 0,    "employeeIds": [      0    ]  }]
Empty
GET/production-api/department/getbyid

Retrieve a ProductionDepartment by its ID

AuthorizationBearer <token>

Access Token used to access this API (JWT bearer token).

In: header

Query Parameters

id*integer

The ID of the desired ProductionDepartment

Response Body

application/json

curl -X GET "https://example.com/production-api/department/getbyid?id=0"
{  "id": 0,  "code": "string",  "name": "string",  "deliveryTime": 0,  "defaultProductionPackageId": 0,  "employeeIds": [    0  ]}
Empty
Empty
PUT/production-api/department/create

Creates a new ProductionDepartment

AuthorizationBearer <token>

Access Token used to access this API (JWT bearer token).

In: header

Request Body

The desired ProductionDepartment

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/production-api/department/create" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "name": "string",    "deliveryTime": 0  }'
{  "id": 0,  "code": "string",  "name": "string",  "deliveryTime": 0,  "defaultProductionPackageId": 0,  "employeeIds": [    0  ]}
Empty
Empty
PATCH/production-api/department/update

Updates an existing ProductionDepartment

AuthorizationBearer <token>

Access Token used to access this API (JWT bearer token).

In: header

Request Body

The updated ProductionDepartment model

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/production-api/department/update" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "name": "string",    "deliveryTime": 0  }'
{  "id": 0,  "code": "string",  "name": "string",  "deliveryTime": 0,  "defaultProductionPackageId": 0,  "employeeIds": [    0  ]}
Empty
Empty
DELETE/production-api/department/delete

Deletes an existing ProductionDepartment

AuthorizationBearer <token>

Access Token used to access this API (JWT bearer token).

In: header

Query Parameters

id*integer

The ProductionDepartment ID

Response Body

curl -X DELETE "https://example.com/production-api/department/delete?id=0"
Empty
Empty
Empty

On this page