I'm designing a REST API for the first time, so I have what I consider a quite basic question about its design.
I would like the files collection to return an ID (or a link) of all available file resources instead of retrieving the full representation because it would be too much data.
GET /files # return the full representation of a collection of resources
GET /files/{id} # return the full representation of a single resource
I don't know if it is better to split it in two different resources:
GET /fileids # return only IDs
GET /files/{id} # return the full representation of a single resource
What would be your approach?