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
|
2020-09-13 18:04:03 +00:00
|
|
|
:id = 224489a4-799d-4960-9dd1-56c4b81d1c2e
|
2020-09-13 13:07:11 +00:00
|
|
|
|
|
|
|
# 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
|
2020-09-13 18:04:03 +00:00
|
|
|
|
|
|
|
# GET
|
2020-09-14 19:13:25 +00:00
|
|
|
GET http://localhost:5000/countdown/api/v1/:id
|
|
|
|
|
|
|
|
|
|
|
|
# GET
|
|
|
|
GET http://localhost:5000/worldclock
|
|
|
|
|
|
|
|
# POST
|
|
|
|
POST http://localhost:5000/worldclock
|