ongzhixian / Pycro

Python microservices
MIT License
0 stars 0 forks source link

Common API - server UTC time #4

Open ongzhixian opened 4 years ago

ongzhixian commented 4 years ago

We want to have a set of common APIs that would allow us to easily determine what's the UTC time on the server.

ongzhixian commented 4 years ago

Implementation

Uri

/api/common/utc

HTTP methods supported

  1. GET
  2. POST

Request content

N/A

Response

{"name": "/api/common/utc", "result": "success", "datetime": "2020-08-29 01:10:37.055795"}

Unit tests

TODO: Define unit test definition here.