appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.
https://developers.app.net
952 stars 99 forks source link

Updating Avatar endpoint #296

Closed scruffyfox closed 11 years ago

scruffyfox commented 11 years ago

Due to the nature of REST and the fact that you're 'updating' your avatar, surely the endpoint should be a PUT rather than POST?

http://developers.app.net/docs/resources/user/profile/#update-a-users-avatar-image

orianmarx commented 11 years ago

Technically we're actually creating a new resource when you "update" your avatar so POST makes sense for us in that context. The alternate response is, we're not trying to adhere too strictly to REST :)