Režijní sazba

GET

/plmtariffs

Získá kolekci BO Režijní sazba

GET

/plmtariffs/{id}

Získá konkrétní BO Režijní sazba

POST

/plmtariffs

Vytvoří nový BO Režijní sazba a vrátí jeho kompletní reprezentaci

PUT

/plmtariffs/{id}

Provede aktualizaci BO Režijní sazba a vrátí jeho kompletní, aktualizovanou reprezentaci. Operaci PUT je možné využívat i k částečným aktualizacím zdrojů (PATCH).

DELETE

/plmtariffs/{id}

Smaže BO Režijní sazba na základě jeho ID

Metadata - Perzistentní položky

Code string (5)

Kód, pole vlastněné tabulkou, možné řadit a filtrovat

MaterialExpense number

Materiálová režie, pole vlastněné tabulkou, možné řadit a filtrovat, pole je duplikováno při klonování objektu

Name string (30)

Název, pole vlastněné tabulkou, možné řadit a filtrovat, pole je duplikováno při klonování objektu

ObjVersion integer

Verze objektu, pouze pro čtení, pole vlastněné tabulkou, možné řadit a filtrovat, pole nepodporuje ochranu dat/GDPR

Rows array (plmtariffrow) relace

Řádky; kolekce BO Řádek sazby, pole je duplikováno při klonování objektu, objekt na který pole odkazuje je 'vlastněn'

Metadata - Neperzistentní položky

ClassID string (26)

ID třídy, pouze pro čtení, fkAnsiCaseSensitive, pole nepodporuje ochranu dat/GDPR

DisplayName string (100)

Název, pouze pro čtení

ID string (10)

Vlastní ID, pouze pro čtení, fkAnsiCaseSensitive, pole nepodporuje ochranu dat/GDPR

Příklady
  • GET
  • QUERY
  • POST
  • PUT
  • DELETE
  • BATCH
  • Builder
Request

GET

https://atd.abra.eu/demodata/plmtariffs?take=1

GET

https://atd.abra.eu/demodata/plmtariffs/{id}
Response
{
    "ID": "1000000101",
    "ObjVersion": 1,
    "Rows": [
        {
            "generalexpense": 1,
            "id": "1000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 2.1,
            "parent_id": "1000000101",
            "workplace_id": "4100000101"
        },
        {
            "generalexpense": 1,
            "id": "2000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 2,
            "parent_id": "1000000101",
            "workplace_id": "3100000101"
        },
        {
            "generalexpense": 1,
            "id": "3000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 4.8,
            "parent_id": "1000000101",
            "workplace_id": "2100000101"
        },
        {
            "generalexpense": 1,
            "id": "4000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 1.5,
            "parent_id": "1000000101",
            "workplace_id": "1100000101"
        }
    ],
    "Code": "SER",
    "Name": "Sazba pro sériovou výrobu",
    "MaterialExpense": 0
}
Request POST

POST

https://atd.abra.eu/demodata/query
{"class": "plmtariffs", "take": "1"}

POST

https://atd.abra.eu/demodata/plmtariffs/query
{"take": "1"}
Response
{
    "ID": "1000000101",
    "ObjVersion": 1,
    "Rows": [
        {
            "generalexpense": 1,
            "id": "1000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 2.1,
            "parent_id": "1000000101",
            "workplace_id": "4100000101"
        },
        {
            "generalexpense": 1,
            "id": "2000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 2,
            "parent_id": "1000000101",
            "workplace_id": "3100000101"
        },
        {
            "generalexpense": 1,
            "id": "3000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 4.8,
            "parent_id": "1000000101",
            "workplace_id": "2100000101"
        },
        {
            "generalexpense": 1,
            "id": "4000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 1.5,
            "parent_id": "1000000101",
            "workplace_id": "1100000101"
        }
    ],
    "Code": "SER",
    "Name": "Sazba pro sériovou výrobu",
    "MaterialExpense": 0
}
Request

POST

https://atd.abra.eu/demodata/plmtariffs?select=id
Body
{
    "Code": "SER",
    "MaterialExpense": 0,
    "Name": "Sazba pro sériovou výrobu",
    "Rows": [
        {
            "generalexpense": 1,
            "id": "1000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 2.1,
            "parent_id": "1000000101",
            "workplace_id": "4100000101"
        },
        {
            "generalexpense": 1,
            "id": "2000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 2,
            "parent_id": "1000000101",
            "workplace_id": "3100000101"
        },
        {
            "generalexpense": 1,
            "id": "3000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 4.8,
            "parent_id": "1000000101",
            "workplace_id": "2100000101"
        },
        {
            "generalexpense": 1,
            "id": "4000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 1.5,
            "parent_id": "1000000101",
            "workplace_id": "1100000101"
        }
    ]
}
Response
{
    "id": "1000000101"
}
Request

PUT

https://atd.abra.eu/demodata/plmtariffs/{id}?select=id
Body
{
    "Code": "SER",
    "MaterialExpense": 0,
    "Name": "Sazba pro sériovou výrobu",
    "Rows": [
        {
            "generalexpense": 1,
            "id": "1000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 2.1,
            "parent_id": "1000000101",
            "workplace_id": "4100000101"
        },
        {
            "generalexpense": 1,
            "id": "2000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 2,
            "parent_id": "1000000101",
            "workplace_id": "3100000101"
        },
        {
            "generalexpense": 1,
            "id": "3000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 4.8,
            "parent_id": "1000000101",
            "workplace_id": "2100000101"
        },
        {
            "generalexpense": 1,
            "id": "4000000101",
            "objversion": 1,
            "overheadcosts": 0,
            "overheadcostsperc": 1.5,
            "parent_id": "1000000101",
            "workplace_id": "1100000101"
        }
    ]
}
Response
{
    "id": "1000000101"
}

DELETE

https://atd.abra.eu/demodata/plmtariffs/{id}
Response
200 - OK Everything worked as expected.
Dávkové zprocování záznamů Request

PUT

https://atd.abra.eu/demodata//batch
  • CREATE
  • UPDATE
  • DELETE
Body - Create
{
    "items": [
        {
            "type": "create",
            "id": "id0",
            "data": {
                "class_id": "plmtariffs",
                "object_data": {
                    "Code": "SER",
                    "MaterialExpense": 0,
                    "Name": "Sazba pro sériovou výrobu",
                    "Rows": [
                        {
                            "generalexpense": 1,
                            "id": "1000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 2.1,
                            "parent_id": "1000000101",
                            "workplace_id": "4100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "2000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 2,
                            "parent_id": "1000000101",
                            "workplace_id": "3100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "3000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 4.8,
                            "parent_id": "1000000101",
                            "workplace_id": "2100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "4000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 1.5,
                            "parent_id": "1000000101",
                            "workplace_id": "1100000101"
                        }
                    ]
                },
                "query": {
                    "select": [
                        "id"
                    ]
                }
            }
        },
        {
            "type": "create",
            "id": "id1",
            "data": {
                "class_id": "plmtariffs",
                "object_data": {
                    "Code": "SER",
                    "MaterialExpense": 0,
                    "Name": "Sazba pro sériovou výrobu",
                    "Rows": [
                        {
                            "generalexpense": 1,
                            "id": "1000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 2.1,
                            "parent_id": "1000000101",
                            "workplace_id": "4100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "2000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 2,
                            "parent_id": "1000000101",
                            "workplace_id": "3100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "3000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 4.8,
                            "parent_id": "1000000101",
                            "workplace_id": "2100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "4000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 1.5,
                            "parent_id": "1000000101",
                            "workplace_id": "1100000101"
                        }
                    ]
                },
                "query": {
                    "select": [
                        "id"
                    ]
                }
            }
        }
    ]
}
Body - Update
{
    "items": [
        {
            "type": "update",
            "id": "id0",
            "data": {
                "class_id": "plmtariffs",
                "obj_id": "1000000100",
                "object_data": {
                    "Code": "SER",
                    "MaterialExpense": 0,
                    "Name": "Sazba pro sériovou výrobu",
                    "Rows": [
                        {
                            "generalexpense": 1,
                            "id": "1000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 2.1,
                            "parent_id": "1000000101",
                            "workplace_id": "4100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "2000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 2,
                            "parent_id": "1000000101",
                            "workplace_id": "3100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "3000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 4.8,
                            "parent_id": "1000000101",
                            "workplace_id": "2100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "4000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 1.5,
                            "parent_id": "1000000101",
                            "workplace_id": "1100000101"
                        }
                    ]
                },
                "query": {
                    "select": [
                        "id"
                    ]
                }
            }
        },
        {
            "type": "update",
            "id": "id1",
            "data": {
                "class_id": "plmtariffs",
                "obj_id": "1000000101",
                "object_data": {
                    "Code": "SER",
                    "MaterialExpense": 0,
                    "Name": "Sazba pro sériovou výrobu",
                    "Rows": [
                        {
                            "generalexpense": 1,
                            "id": "1000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 2.1,
                            "parent_id": "1000000101",
                            "workplace_id": "4100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "2000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 2,
                            "parent_id": "1000000101",
                            "workplace_id": "3100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "3000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 4.8,
                            "parent_id": "1000000101",
                            "workplace_id": "2100000101"
                        },
                        {
                            "generalexpense": 1,
                            "id": "4000000101",
                            "objversion": 1,
                            "overheadcosts": 0,
                            "overheadcostsperc": 1.5,
                            "parent_id": "1000000101",
                            "workplace_id": "1100000101"
                        }
                    ]
                },
                "query": {
                    "select": [
                        "id"
                    ]
                }
            }
        }
    ]
}
Body - Delete
{
    "items": [
        {
            "type": "delete",
            "id": "id0",
            "data": {
                "class_id": "plmtariffs",
                "obj_id": "1000000100"
            }
        },
        {
            "type": "delete",
            "id": "id1",
            "data": {
                "class_id": "plmtariffs",
                "obj_id": "1000000101"
            }
        },
        {
            "type": "delete",
            "id": "id2",
            "data": {
                "class_id": "plmtariffs",
                "obj_id": "1000000102"
            }
        },
        {
            "type": "delete",
            "id": "id3",
            "data": {
                "class_id": "plmtariffs",
                "obj_id": "1000000103"
            }
        },
        {
            "type": "delete",
            "id": "id4",
            "data": {
                "class_id": "plmtariffs",
                "obj_id": "1000000104"
            }
        }
    ]
}