Files

20 lines
477 B
Plaintext
Raw Permalink Normal View History

2026-06-11 19:03:29 +02:00
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