Skip to content

Instantly share code, notes, and snippets.

@subhashb
Created March 1, 2014 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subhashb/9284773 to your computer and use it in GitHub Desktop.
Save subhashb/9284773 to your computer and use it in GitHub Desktop.
Course Updated_by Specs
Courses
POST /courses
when authorized
when publisher
does not set updated_by during creation
when ghost publisher
does not set updated_by during creation
PUT /courses/:id
when authorized
sets updated_by to publisher
when ghost publisher
sets updated_by to publisher when changed
sets updated_by to publisher when not changed from before
DELETE /courses/:id
when publisher
sets updated_by to publisher
when ghost publisher
does not set updated_by
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment