jykae / ec-bazaar-api

API v2 reference implementation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EduCloud Bazaar API

API v2 reference implementation.

Table of Contents

Implementation

Implemented with Meteor

Authentication

Authentication is session-based Meteor Restivus default authentication

Token expiration is 1 day, if not logged out.

Login

curl https://bazaardev.educloudalliance.org/api/v2/login -d "username=example&password=mypassword"

In response you will get userId and authToken

Logout

curl http://bazaardev.educloudalliance.org/api/v2/logout -X POST -H "X-Auth-Token: <authToken>" -H "X-User-Id: <userId>"

Authenticated calls

curl -H "X-Auth-Token: <authToken>" -H "X-User-Id: <userId>" https://bazaardev.educloudalliance.org/api/v2/materials

Documentation

Swagger UI for trying out API: https://bazaardev.educloudalliance.org/api-docs

About

API v2 reference implementation.


Languages

Language:HTML 96.0%Language:JavaScript 3.9%Language:Python 0.1%