I am creating an API endpoint that takes a DateTime parameter as a parameter.
It is recommended not to use the : character as part of the URI, so I cannot just use the ISO 8601 format.
So far I have been considering two formats:
A) Exclamation mark as a minute separator:
http://api.example.com/resource/2013-08-29T12!15
It looks unnatural and even with clear documentation, API users should be wrong.
B) URI segment for the DateTime part:
http://api.example.com/resource/2013/08/29/12/15
It looks unreadable. In addition, as soon as I add additional numerical parameters, this will become incomprehensible!
Is there a standard / convention for representing date / time in a URI?
source share