-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Dwi purnomo edited this page Jul 13, 2017
·
1 revision
Module_eclass is REST API to communicate with Openedoo eclass.
-
[POST] /eclass
Content-type: application/json
Example request body:
{ "name":"asksksksksksk ksksksk8", "course":"xyz", "university":"uny", "privilege":"public", "user_id":73455 }
-
[GET] /eclass/
HTTP Method: GET
It serves 20 eclass. To get more list of eClass, use the query pagination helper:
[GET] /eclass?page=2
To get list of eClass by creator, use query parameter
creator_id
:[GET] /eclass?creator_id=45
To get list of eclass by membership, use query parameter
member_id
:[GET] /eclass?member_id=35
-
To get an eClass, use eClass id as url parameter:
[GET] /eclass/3
-
To delete an eClass, use eClass id as url parameter, with HTTP DELETE method:
[DELETE] /eclass/3
-
To update an eClass, use eClass id as url parameter, with HTTP PUT method:
[PUT] /eclass/3
Example request body (application/json):
{"name":"terupdate?"}