Skip to content
Dwi purnomo edited this page Jul 13, 2017 · 1 revision

Module_eclass is REST API to communicate with Openedoo eclass.

Endpoints

  • Create eClass

    [POST] /eclass
    

    Content-type: application/json

    Example request body:

    {
      "name":"asksksksksksk ksksksk8",
      "course":"xyz",
      "university":"uny",
      "privilege":"public",
      "user_id":73455
    }
    

  • Get eClass collections

    [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
    

  • Get an eClass

    To get an eClass, use eClass id as url parameter:

    [GET] /eclass/3
    

  • Delete an eClass

    To delete an eClass, use eClass id as url parameter, with HTTP DELETE method:

    [DELETE] /eclass/3
    

  • Update an eClass

    To update an eClass, use eClass id as url parameter, with HTTP PUT method:

    [PUT] /eclass/3
    

    Example request body (application/json):

    {"name":"terupdate?"}
    
Clone this wiki locally