I am trying to decide which way is more restful. Either:
POST /v1/files/uploads
With file multipart data in the body of the request.
Or should I specify the resource by filename when uploading?
POST /v1/files/uploads/foo.jpg
Which one do you prefer? I am leaning towards the second one but not sure what is the best practice in this instance.