API v2 reference implementation.
Implemented with Meteor
Authentication is session-based Meteor Restivus default authentication
Token expiration is 1 day, if not logged out.
curl https://bazaardev.educloudalliance.org/api/v2/login -d "username=example&password=mypassword"
In response you will get userId and authToken
curl http://bazaardev.educloudalliance.org/api/v2/logout -X POST -H "X-Auth-Token: <authToken>" -H "X-User-Id: <userId>"
curl -H "X-Auth-Token: <authToken>" -H "X-User-Id: <userId>" https://bazaardev.educloudalliance.org/api/v2/materials
Swagger UI for trying out API: https://bazaardev.educloudalliance.org/api-docs