Skip to content

Instantly share code, notes, and snippets.

@subhashb
Last active January 4, 2016 21:49
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/8683916 to your computer and use it in GitHub Desktop.
Save subhashb/8683916 to your computer and use it in GitHub Desktop.
Access for KayPs for update API
Api::V1::AssetsController
GET /assets/:id/kayps_for_update
when called
return the Kps that use an asset
should only return a Kp once even if it uses the asset many times
should flag the KPs that use old versions of the asset
access restrictions
for a learner returns 403
for a publisher returns 200
for an admin returns 200
for a superadmin returns 200
Finished in 6.18 seconds
7 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment