GetMarkingData Request#
Overview#
The system must process POST requests sent to the /getmarkingdata endpoint to retrieve the PRODUCTS object, with the CONTENT field populated with panel and board identifiers. The system processes POST requests received at the /getmarkingdata endpoint, validating the lot, resource, product BOM, and remaining quantity. If validation succeeds, the CONTENT field of the PRODUCTS object is updated with the correct identifiers.
How To Configure#
Relevant Artifacts#
The following table lists the entities relevant to the implementation of this requirement:
| Name | Type | Is Mandatory | Description |
|---|---|---|---|
| IoTMetaDataDefinition | SmartTable | Yes | Smart Table used to configure REST server addresses and ports. |
| SMTNutekRequestSerialNumber | DEE | Yes | DEE used to perform validations and generate panel and board identifiers. |
How It Works#
- The host receives a POST request at the
/getmarkingdataendpoint. - By default, the system invokes the
SMTNutekRequestSerialNumberDEE, or another DEE configured in IoTMetaDataDefinition underGetMarkingDataDEE. - After all validations are completed, the DEE returns the
PRODUCTSobject with the same values received in the request, except for theCONTENTfield, which is updated with the generated serial numbers. - A
VARIABLEof typeTXTis not supported and must not be used. - After receiving the DEE response, the response payload is created using the original request data and the updated
PRODUCTSobject. - The system returns an HTTP 200 response containing the generated payload.
- In case of an error, a dedicated error payload is generated and returned.
Assumptions#
- The
/getmarkingdataendpoint is accessible and correctly configured. - Variables of type
TXTare not used.
Example Payload#
Request#
```json{ "MESSAGEID": 23, "MACHINEID": "LASER01", "USERNAME": "OPERATOR01", "WORKORDER": "123456", "PCBPERBOARD": 2, "PRODUCTS": [ { "VARIABLE": "BRD", "INDEX": 0, "CONTENT": "" }, { "VARIABLE": "PCB", "INDEX": 1, "CONTENT": "" }, { "VARIABLE": "TXT", "INDEX": 1, "CONTENT": "" }, { "VARIABLE": "PCB", "INDEX": 2, "CONTENT": "" } ] }
### Reply
```json{
"STATUS": "OK",
"REASON": "",
"DATA": [
{
"RESULT": "0",
"MSG": "OK",
"MESSAGEID": 23,
"MACHINEID": "LASER01",
"PRODUCTS": [
{
"VARIABLE": "BRD",
"INDEX": 0,
"CONTENT": "1234567"
},
{
"VARIABLE": "PCB",
"INDEX": 1,
"CONTENT": "ABC123"
},
{
"VARIABLE": "TXT",
"INDEX": 1,
"CONTENT": "PCB-123"
},
{
"VARIABLE": "PCB",
"INDEX": 2,
"CONTENT": "ABC124"
}
]
}
]
}