Re: versioning

Just a short example using a human readable format:

{
    users: [
        {
            name: "John",
            etag: "...",
            links: [
                {
                    href: "http://example.com/users/1",
                    rel: "http://example.com/rels#update",
                    method: "PATCH",
                    fields: ["name", "etag"],
                    title: "update single embedded resource"
                }
            ]
        }//,
        //...
    ],
    links: [
        {
            href: "http://example.com/users",
            rel: "http://example.com/rels#bulk-update",
            method: "PATCH",
            fields: {users: ["name", "etag"]},
            title: "update multiple embedded resources"
        }
    ]
}

Is it possible to send these etags in request and response headers.
Afaik the server can send only a single etag header by each response,
and the client can send only a single etag header by each request. But
maybe I am wrong...

Received on Saturday, 20 September 2014 20:48:03 UTC