netclock/querysheet.http
Armin Friedl d45d2fa982
All checks were successful
continuous-integration/drone/push Build is passing
Create countdown
2020-09-13 15:07:11 +02:00

18 lines
387 B
HTTP

# Create a new countdown clock with
# 5000 seconds
POST http://localhost:5000/countdown/api/v1
Content-Type: application/json
{"total": "150"}
# 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