This commit is contained in:
Martin Slachta
2026-06-11 19:03:29 +02:00
commit 0d829845c4
150 changed files with 38582 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
POST http://localhost/wordpress/wp-json/reservations/v1/object
{
"name": "TestObject1"
}
HTTP 200
[Captures]
object_id: jsonpath "$[0]"
GET http://localhost/wordpress/wp-json/reservations/v1/object
HTTP 200
[Asserts]
jsonpath "$[-1:].reservation_object_id" count == 1
jsonpath "$[-1:].reservation_object_id[0]" == {{object_id}}
# Create it's timetable
POST http://localhost/wordpress/wp-json/reservations/v1/object/{{object_id}}/timetable
{
"block_len": 30
}
HTTP 200