Machine Registry

/apis/anagraphics

All the machines that make up a project are described through a series of textual information. To retrieve this information, you can use the following endpoint:

chevron-rightRequesthashtag
HTTP
GET https://{BASE_URL}/apis/anagraphics

By making an HTTP GET request to the specified endpoint, you can retrieve information about all the machines belonging to the project.

Example

chevron-rightRequesthashtag
HTTP
GET https://matdev.40mat.com/apis/anagraphics
chevron-rightResponsehashtag
JSON
[
    {
        "customer": "40Factory",
        "customerId": "Line",
        "excludeLine": true,
        "id": "MCCabcabcabcabcabcabcabcabcabcabcabc",
        "location": {
            "latitude": "45.035863",
            "longitude": "9.759874"
        },
        "machineId": "40-line",
        "machineName": "CB231294",
        "machineReference": "M1",
        "machines": {
            "M1": {
                "components": [
                    "motor1",
                    "motor2"
                ]
            },
            "M2": {}
        },
        "model": "Wrapper Machine",
        "parentId": "subtentants/Line",
        "plant": "Piacenza",
        "settings": {
            "cons0Cost": 0.01,
            "cons0RelMean": 10.976927607602123,
            "cons0RelStd": 0.5301137150152502,
            "cons1Cost": 0.000131,
            "cons1RelMean": 1.0349332185509406,
            "cons1RelStd": 0.3433522379337663,
            "cons2Cost": 120,
            "cons2RelMean": 0.0015269034720833677,
            "cons2RelStd": 6.469884712715801e-05,
            "cons3Cost": 600,
            "cons3RelMean": 0.0001470083005766097,
            "cons3RelStd": 0.0022844333558226498,
            "nSigma": 1,
            "trainingEnd": "2024-03-08T23:00:00.000Z",
            "trainingStart": "2024-02-04T23:00:00.000Z"
        },
        "timezone": "Europe/Rome",
        "typeId": null
    },
    {
        "customer": "40Factory",
        "customerId": "Line",
        "excludeLine": true,
        "id": "MCCcdecdecdecdecdecdecdecdecdecdecdecdecde",
        "location": {
            "latitude": "45.035863",
            "longitude": "9.759874"
        },
        "machineId": "40-machine",
        "machineName": "CB231295",
        "machineReference": "M1",
        "machines": {
            "M1": {
                "components": [
                    "motor1",
                    "motor2"
                ]
            },
            "M2": {}
        },
        "model": "Pallettizer Machine",
        "parentId": "subtentants/Line",
        "plant": "Piacenza",
        "settings": {
            "cons0Cost": 0.01,
            "cons0RelMean": 10.976927607602123,
            "cons0RelStd": 0.5301137150152502,
            "cons1Cost": 0.000131,
            "cons1RelMean": 1.0349332185509406,
            "cons1RelStd": 0.3433522379337663,
            "cons2Cost": 120,
            "cons2RelMean": 0.0015269034720833677,
            "cons2RelStd": 6.469884712715801e-05,
            "cons3Cost": 600,
            "cons3RelMean": 0.0001470083005766097,
            "cons3RelStd": 0.0022844333558226498,
            "nSigma": 1,
            "trainingEnd": "2024-03-08T23:00:00.000Z",
            "trainingStart": "2024-02-04T23:00:00.000Z"
        },
        "timezone": "Europe/Rome",
        "typeId": null
    }
]

Code

OpenAPI

get

This endpoint returns information about all the assets of the current project.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

OK

application/json
Responsearray

list of objects where each object describes different properties of a machine

get
/apis/anagraphics

/apis/anagraphics/<assetId>

To retrieve the information that describes a specific machine in a project, you can use the following endpoint:

chevron-rightRequesthashtag

assetId : represents the unique ID of the machine you are interested in.

Example

chevron-rightRequesthashtag
chevron-rightResponsehashtag

Code

OpenAPI

get

This endpoint returns information about the specified asset. Information for all assets is returned if no assetId parameter is specified.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
assetIdstringRequired
Responses
chevron-right
200

OK

application/json
Responseobject

object where each couple key - value describes a different property of a machine

get
/apis/anagraphics/{assetId}