netclock/querysheet.http

19 lines
387 B
Text
Raw Normal View History

2020-09-12 17:51:47 +00:00
# Create a new countdown clock with
# 5000 seconds
POST http://localhost:5000/countdown/api/v1
Content-Type: application/json
{"total": "150"}
2020-09-13 13:07:11 +00:00
# Set id
:id = cddabcb5-9da1-4ecb-ad36-2ca468da68e1
# Start
PATCH http://localhost:5000/countdown/api/v1/start/:id
# Stop
PATCH http://localhost:5000/countdown/api/v1/stop/:id
# Reset
PATCH http://localhost:5000/countdown/api/v1/reset/:id