diff --git a/src/api/example_responses/current-time.json b/src/api/example_responses/current-time.json new file mode 100644 index 0000000..725dfa9 --- /dev/null +++ b/src/api/example_responses/current-time.json @@ -0,0 +1 @@ +{"code":200,"currentTime":1710960121182,"data":{"entry":{"readableTime":"2024-03-20T11:42:01-07:00","time":1710960121182},"references":{"agencies":[],"routes":[],"situations":[],"stopTimes":[],"stops":[],"trips":[]}},"text":"OK","version":2} \ No newline at end of file diff --git a/src/api/where/methods/current-time.md b/src/api/where/methods/current-time.md index 51c75e2..4246f4d 100644 --- a/src/api/where/methods/current-time.md +++ b/src/api/where/methods/current-time.md @@ -1,30 +1,11 @@ --- -layout: page +layout: rest_api title: current-time Method +description: Retrieve the current system time. +sample_request_url: https://api.pugetsound.onebusaway.org/api/where/current-time.json?key=TEST +example_response_file: current-time.json --- -Retrieve the current system time - -## Sample Request - -[http://api.pugetsound.onebusaway.org/api/where/current-time.json?key=TEST](http://api.pugetsound.onebusaway.org/api/where/current-time.json?key=TEST) - -## Sample Response - - - 2 - 200 - OK - 1270614730908 - - - - - - ## Response * `time` - current system time as milliseconds since the Unix epoch