Tuesday, November 19, 2013

RESTful Service Best Practices

I was recently looking for reference material to back up my preference for storing date/time values in MongoDB in UTC using MongoDB's ISODate type. I found this great reference published at amazonaws.com:

RESTful Service Best Practices
Recommendations for Creating Web Services

It gives a solid recommendation for RESTful services:
"... always use the same format, including the time portion (along with timezone information) in the string. ISO 8601 time point format is a good solution, using the fully-enhanced format that includes hours, minutes, seconds and a decimal fraction of seconds (e.g. yyyy-MM-dd'T'HH:mm:ss.SSS'Z')."
It doesn't directly address storage directly, but it's such a great resource, I wanted to share it.

No comments:

Post a Comment