shotvibe / shotvibe-web

ShotVibe REST API webservice
1 stars 0 forks source link

Add REST endpoint to allow each user to change the name of an album #67

Open benny-shotvibe opened 10 years ago

benny-shotvibe commented 10 years ago

This must be done after #66

lessandro commented 10 years ago

How about:

PATCH /albums/{id}/
{"name":"new name"}

Returns 204 No Content if successful.

This feels a off to me because it's acting on AlbumMember while the resource in the url is the album itself. Likewise, it makes no sense to bump the album's revision/last_modified, so updates relying on if-modified-since/etag would not catch this.

This could also complicate things for "staff" users.