Is there any recommendation or standard for the payload body of an HTTP response to an HTTP GET request on a collection resource? I cannot find anything in the RFC 7230 family.
The Representational state transfer article on Wikipedia states:
For a collection resource, such as https://api.example.com/collection/, GET retrieves the URIs of the member resources of the collection resource in the response body.
But there is no reference.
With the application/json
media type, I have seen sometimes an array of URIs in the response, for instance:
["/collection/item1", "/collection/item2", (…), "/collection/itemN"]
I have also seen objects with "links"
keys instead.