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
@@ -0,0 +1,22 @@
# Create timetable
POST http://localhost/wordpress/wp-json/reservations/v1/timetable
{
"name": "Test Timetable"
}
HTTP 200
[Captures]
object_id: jsonpath "$"
# Update timetable
PUT http://localhost/wordpress/wp-json/reservations/v1/timetable/{{object_id}}
{
"name": "Test Timetable Updated"
}
HTTP 200
# Check timetable
GET http://localhost/wordpress/wp-json/reservations/v1/timetable/{{object_id}}
HTTP 200
[Asserts]
jsonpath "$.name" == "Test Timetable Updated"
jsonpath "$.id" == {{object_id}}