Joyce,
Here are a few thoughts.
Most decent client libraries should deal with the nasty date format
and provide the conversion to a native datetime format.
A custom header is definitely an option, however, would it not be
worth adding a "SyncDateTime" property to the returned json
representation. The Date header on the HTTP response is the time at
which the representation was generated. That isn't necessarily the
same time as the "SyncDateTime". Your currently implementation may
enforce that, but will it always be that?
You suggest that the client should "take note of the date...". If the
date was embedded in the returned payload, then the client would
automatically get a copy of that date when it parses the payload. The
date and the list of documents would be naturally attached together on
the client, rather the client having to keep track of which date
belongs to which array of documents.
I'm not sure I fully understand the suggestion to embed the date in
the link header. You don't want the client to have to start parsing a
URI to pull data out of it, if that is what you are considering.
You talk about accepting dates in your API, but I don't see where you
are doing that. I would certainly only use the ISO 8601 date format
for parameters and body content. The RFC 822 dates are an artifact of
history that we just can't change without breaking a whole lot of
stuff. I would never voluntarily choose to use them.
Anyway, just my thoughts on the subject.
Darrel
> --
> You received this message because you are subscribed to the Google Groups
> "API Craft" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
api-craft+...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/api-craft.
> For more options, visit
https://groups.google.com/d/optout.