NATS5 REST API Service GET datetime
From TMM Wiki
Jump to navigationJump to search
GET /service/datetime
Description
- Get a formatted NATS date string, optionally providing a timestamp or a preferred format
Resource URL
- http://domain/api/service/datetime
- Replace domain with the nats domain
- GET
Response Format
- JSON
- HTTP headers
Parameters
Parameters can be sent as url encoded params
- datetime
- type: datetime (A date string to be parsed by php strtotime, or a unix timestamp integer)
- optional
- format
- type: string
- optional