GET/production-api/polygon/getbyid

Retrieve a ProductionPolygon 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 ProductionPolygon

Response Body

application/json

curl -X GET "https://example.com/production-api/polygon/getbyid?id=0"
{  "id": 0,  "polygonId": 0,  "productionProjectId": 0,  "subnumber": 0,  "productionPackageId": 0,  "finishAt": "2019-08-24T14:15:22Z",  "deliverAt": "2019-08-24T14:15:22Z",  "productionValue": 0,  "statuses": [    {      "id": 0,      "productionPolygonId": 0,      "productionStatusId": 0,      "productionStatusValue": 0,      "hubEmployeeId": 0,      "remarks": "string",      "assignedAt": "2019-08-24T14:15:22Z"    }  ],  "materials": [    {      "id": 0,      "polygonProjectMaterialId": 0,      "hasDefect": true,      "hadDefect": true,      "isMatched": true,      "matchedAt": "2019-08-24T14:15:22Z"    }  ]}
Empty
Empty
GET/production-api/polygon/getunmatched

Retrieves all ProductionPolygons that have atleast 1 ProductionPolygonProjectMaterial with IsMatched = false

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/polygon/getunmatched"
[  {    "id": 0,    "polygonId": 0,    "productionProjectId": 0,    "subnumber": 0,    "productionPackageId": 0,    "finishAt": "2019-08-24T14:15:22Z",    "deliverAt": "2019-08-24T14:15:22Z",    "productionValue": 0,    "statuses": [      {        "id": 0,        "productionPolygonId": 0,        "productionStatusId": 0,        "productionStatusValue": 0,        "hubEmployeeId": 0,        "remarks": "string",        "assignedAt": "2019-08-24T14:15:22Z"      }    ],    "materials": [      {        "id": 0,        "polygonProjectMaterialId": 0,        "hasDefect": true,        "hadDefect": true,        "isMatched": true,        "matchedAt": "2019-08-24T14:15:22Z"      }    ]  }]
Empty
POST/production-api/polygon/setpolygonprojectmaterialmatched

Updates the IsMatched state of a specific ProductionPolygonProjectMaterial

AuthorizationBearer <token>

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

In: header

Request Body

The request to update the IsMatched state of a ProductionPolygonProjectMaterial

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/production-api/polygon/setpolygonprojectmaterialmatched" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": 0,  "polygonProjectMaterialId": 0,  "hasDefect": true,  "hadDefect": true,  "isMatched": true,  "matchedAt": "2019-08-24T14:15:22Z"}
Empty
Empty
POST/production-api/polygon/setpolygonprojectmaterialhasdefect

Updates the HasDefect value of a specific ProductionPolygonProjectMaterial

AuthorizationBearer <token>

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

In: header

Request Body

The request to update the HasDefect value of the corresponding ProductionPolygonProjectMaterial

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/production-api/polygon/setpolygonprojectmaterialhasdefect" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": 0,  "polygonProjectMaterialId": 0,  "hasDefect": true,  "hadDefect": true,  "isMatched": true,  "matchedAt": "2019-08-24T14:15:22Z"}
Empty
POST/production-api/polygon/setpolygonprojectmaterialhaddefect

Updates the HasDefect value of a specific ProductionPolygonProjectMaterial

AuthorizationBearer <token>

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

In: header

Request Body

The request to update the HasDefect value of the corresponding ProductionPolygonProjectMaterial

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/production-api/polygon/setpolygonprojectmaterialhaddefect" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": 0,  "polygonProjectMaterialId": 0,  "hasDefect": true,  "hadDefect": true,  "isMatched": true,  "matchedAt": "2019-08-24T14:15:22Z"}
Empty

On this page