GET
/
api
/
production-logs
/
{id}
Get production log by ID
curl --request GET \
  --url http://localhost:3000/api/production-logs/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "_id": "<string>",
    "pane": "<string>",
    "order": "<string>",
    "station": "<string>",
    "operator": "<string>",
    "defectCode": "<string>",
    "reworkReason": "<string>",
    "qcResults": [
      {
        "label": "<string>",
        "passed": true,
        "note": "<string>"
      }
    ],
    "startedAt": "2023-11-07T05:31:56Z",
    "completedAt": "2023-11-07T05:31:56Z",
    "durationMs": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Resource ID

Response

Production log found

success
boolean
Example:

true

message
string
data
object