Skip to content

GET Coop Active Completed

Pierre Robert-Michon edited this page Mar 5, 2019 · 2 revisions

Get a list of all coops completed (strictly) during a specific semester

Method

GET

URL

/coop/active/completed/{term}

Params

  • String term : academic term (ex: "winter2018")

Output

An array of coops, each containing the following fields:

  • startDate - Date of the start of the coop (dd-mm-yy)
  • endDate - Date of the end of the coop (dd-mm-yy)
  • semester - semester of the coop
  • coopId - id of the coop created
  • empoyerConfirmation - confirmation of the employer (true or false)
  • needWorkPermit - True if the coop needs a work permit, false otherwise
  • jobDescription - Description of the job
  • location - Location of the coop
  • jobId - id of the job
  • form - List of Form
  • reminder - List of Reminder
  • pdf - List of PDF
  • student - Student Object.
  • employer - Employer Object.

Example

Request: GET http://localhost:8080/coop/active/completed/fall2017

Success Response:

  • Code: 200
  • Content:
{
"startDate": "2017-09-12",
"endDate": "2017-01-03",
"semester": "Fall",
"coopId": 3,
"employerConfiration": true,
"needWorkPermit": false,
"jobDescription": "GreatJob",
"location": "Montreal",
"jobId": 123,
"form": [],
"reminder": [],
"pdf": [],
"student": {},
"employer": {}
},
{
"startDate": "2017-08-20",
"endDate": "2017-11-04",
"semester": "Fall",
"coopId": 2,
"employerConfiration": true,
"needWorkPermit": false,
"jobDescription": "Nice Job",
"location": "Quebec",
"jobId": 43,
"form": [],
"reminder": [],
"pdf": [],
"student": {},
"employer": {}
}

Back to REST API

Clone this wiki locally