Go to file
Michael Ziwisky aa8b8c7ece add serializable hash of CustomData for User models
fixes CNVS-11424

test plan:
- rake db:migrate
- if you don't already have one, set yourself up with a developer token.
  (you can do so from <canvas>/developer_keys)

- $ curl -H "Authorization: Bearer <ACCESS-TOKEN>" \
         -X GET -F 'ns=test' \
         <canvas>/api/v1/users/self/custom_data
  #=> {"message":"no data for scope"}

- $ curl -H "Authorization: Bearer <ACCESS-TOKEN>" \
         -X PUT -F 'ns=test' \
         -F 'data[apple]=so tasty' \
         -F 'data[kiwi]=a bit sour' \
         <canvas>/api/v1/users/self/custom_data/fruit
  #=> {"data":{"apple":"so tasty","kiwi":"a bit sour"}}

- $ curl -H "Authorization: Bearer <ACCESS-TOKEN>" \
         -X GET -F 'ns=test' \
         <canvas>/api/v1/users/self/custom_data
  #=> {"data":{"fruit":{"apple":"so tasty","kiwi":"a bit sour"}}}

- $ curl -H "Authorization: Bearer <ACCESS-TOKEN>" \
         -X DELETE -F 'ns=test' \
         <canvas>/api/v1/users/self/custom_data/fruit/kiwi
  #=> {"data":"a bit sour"}

- $ curl -H "Authorization: Bearer <ACCESS-TOKEN>" \
         -X GET -F 'ns=test' \
         <canvas>/api/v1/users/self/custom_data
  #=> {"data":{"fruit":{"apple":"so tasty"}}}

- see new API doc for more info about how it should work, but
  basically, you should be able to GET, PUT, and DELETE at will
  for any given scope, and PUTting JSON hashes creates referenceable
  scopes. (e.g. the DELETE above has 'kiwi' in its scope)

Change-Id: If027ae4aeec14edf44275ba0372a68aef7e5600e
Reviewed-on: https://gerrit.instructure.com/31173
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
2014-03-24 21:52:43 +00:00
app add serializable hash of CustomData for User models 2014-03-24 21:52:43 +00:00
config add serializable hash of CustomData for User models 2014-03-24 21:52:43 +00:00
db/migrate add serializable hash of CustomData for User models 2014-03-24 21:52:43 +00:00
doc fix formatting of special ids in api docs 2014-02-13 19:39:38 +00:00
gems don't ruin cached_context_grants_right? in test mode 2014-03-20 18:50:50 +00:00
guard guard: print handlebars errors 2014-03-05 21:35:41 +00:00
lib close temp files after upload 2014-03-24 16:15:08 +00:00
loom introduced bower to manage js dependencies 2013-12-13 17:45:57 +00:00
public Merge pull request #366 from sfu/fix-noflash_upload 2014-03-24 12:58:36 -06:00
script upgraded requirejs to 2.1.10 2014-03-10 22:27:53 +00:00
spec add serializable hash of CustomData for User models 2014-03-24 21:52:43 +00:00
vendor/plugins use rubyzip version 1.1.0 2014-03-12 12:20:22 +00:00
.bowerrc introduced bower to manage js dependencies 2013-12-13 17:45:57 +00:00
.gitignore rails3: updated .gitignore 2014-03-20 17:18:19 +00:00
.jshintrc make jslint settings more sane 2012-08-17 11:04:40 -06:00
.travis.yml more travis builds 2014-02-10 16:23:19 +00:00
CONTRIBUTING.md add a contributing doc for github coolness 2012-09-19 10:16:04 -06:00
COPYRIGHT Initial commit. 2011-01-31 18:57:29 -07:00
Gemfile have to update mysql2 for rails3 2014-03-24 16:06:25 +00:00
Guardfile fix guard for new spec location 2013-11-05 16:38:20 +00:00
LICENSE Initial commit. 2011-01-31 18:57:29 -07:00
README.md add travis-ci badge to README.md 2014-01-23 17:17:49 +00:00
Rakefile enable parallelized_specs in rails3 2014-01-14 23:22:10 +00:00
bower.json upgrade ember to 1.4.0 2014-03-10 22:16:57 +00:00
config.ru start adding rails 3.0 support 2013-03-22 19:08:40 +00:00
karma.conf.js new avatars upload image function 2014-03-07 18:52:28 +00:00
package.json fix npm installs by pinning karma-coffee-preproccessor 2014-03-11 17:03:51 +00:00

README.md

Canvas LMS

Build
Status

Canvas is a new, open-source LMS by Instructure Inc. It is released under the AGPLv3 license for use by anyone interested in learning more about or using learning management systems.

Please see our main wiki page for more information

Installation

Detailed instructions for installation and configuration of Canvas are provided on our wiki.