GET /api/v3/class/ID/students

List students for a specific class.

Request Path

GET /api/v3/class/<classId>/students?isFull=<isFull>

Request Payload

None.

Parameters

ClassId The class id students participates in
IsFull Should fetch whole student info, including environment and vms

Response example

// when “IsFull” is not specified – only basic info is returned

[
    {
       "firstName": "Hector",
       "lastName": "Pounders",
       "email": "hector@cloudshare.com",
       "id": "SDcJ5YHCfmKWXGgHJdiK0UEQ2"
    }
]

// when “IsFull” is false


[
    {
        "status": 1,
        "envStatus": 5,
        "envCommands": [],
        "envId": "ENQi3ZoBEUCY5Kv3AA6wKo0w2",
        "firstName": "Hector",
        "lastName": "Pounders",
        "email": "hector@cloudshare.com",
        "id": "SDcJ5YHCfmKWXGgHJdiK0UEQ2"
    }
]


// when “IsFull” is true

[
    {
       "vms": [
           {
               "id": "MCenC7qMgpzbZMd9EP_fwfWA2",
               "name": "machine 1"
           }
       ],
       "status": 2,
       "envStatus": 2,
       "envCommands": [
           "Suspend",
           "RevertEnv",
           "Delete"
       ],
       "envId": "ENzoOVHhh0EcRbc6SrXsBQNg2",
       "firstName": "Hector",
       "lastName": "Pounders",
       "email": "hector@cloudshare.com",
       "id": "SDcJ5YHCfmKWXGgHJdiK0UEQ2"
    }
]