I need to download a file, but, I am wondering which is the best approach to publish my resource. Lets say I have a Document
http://api/documents/id
where I make a GET request should I receive the information of the document with that id including an extra field with the string representation of the file in BASE64? or should I publish another url resource like
http://api/documents/id/download
just for getting the file? The first I know how to do it, but I don't know if that is the proper way. With the later I need advice.