2026_08_31
This commit is contained in:
commit
73015386e9
2320 files changed
+80291
No files matched your search
@@ -0,0 +1,69 @@
|
||||
### Get All
|
||||
GET http://localhost:3000/rk2/units
|
||||
|
||||
|
||||
### Get All
|
||||
GET http://localhost:3000/rk2/units/expand
|
||||
|
||||
|
||||
### Get By Ids
|
||||
GET http://localhost:3000/rk2/units/6a8c116adbe08c3d75e3aefd
|
||||
|
||||
|
||||
### Create
|
||||
POST http://localhost:3000/rk2/units
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name":"Unit2",
|
||||
"type":"Sieb",
|
||||
"groupId":"6a8bf89253f346de0c74c3d1"
|
||||
|
||||
}
|
||||
|
||||
### Update Base
|
||||
PATCH http://localhost:3000/rk2/units/6a8c116adbe08c3d75e3aefd
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name":"Unit30",
|
||||
"components":[
|
||||
{
|
||||
"name":"Antrieb2",
|
||||
"type":"Antrieb",
|
||||
"signalIds":[]
|
||||
},
|
||||
{
|
||||
"name":"HS",
|
||||
"type":"Reparaturschalter",
|
||||
"signalIds":[]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
### Update
|
||||
PATCH http://localhost:3000/rk2/units/6a8c116adbe08c3d75e3aefd/component/6a8c182db0eb8eff30b703e5
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
||||
"name":"Antrieb22",
|
||||
"type":"Endschalter",
|
||||
"signalIds": ["6a8c112cdbe08c3d75e3aefc"],
|
||||
"properties":{"test":"1"}
|
||||
}
|
||||
|
||||
### Update Unit - Add Component
|
||||
PATCH http://localhost:3000/rk2/units/6a8c116adbe08c3d75e3aefd/addComponent
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
||||
"name":"Antrieb122",
|
||||
"type":"Endschalter",
|
||||
"signalIds": ["6a8c112cdbe08c3d75e3aefc"],
|
||||
"properties":{"test":"1"}
|
||||
}
|
||||
|
||||
### Delete
|
||||
DELETE http://localhost:3000/rk2/units/6a8c112cdbe08c3d75e3aefc
|
||||
Reference in new issue
Block a user