Skip to content

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#

  1. The host receives a POST request at the /getmarkingdata endpoint.
  2. By default, the system invokes the SMTNutekRequestSerialNumber DEE, or another DEE configured in IoTMetaDataDefinition under GetMarkingDataDEE.
  3. After all validations are completed, the DEE returns the PRODUCTS object with the same values received in the request, except for the CONTENT field, which is updated with the generated serial numbers.
  4. A VARIABLE of type TXT is not supported and must not be used.
  5. After receiving the DEE response, the response payload is created using the original request data and the updated PRODUCTS object.
  6. The system returns an HTTP 200 response containing the generated payload.
  7. In case of an error, a dedicated error payload is generated and returned.

Assumptions#

  • The /getmarkingdata endpoint is accessible and correctly configured.
  • Variables of type TXT are 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"
        }
      ]
    }
  ]
}