Skip to content

POST Coop

Julien Lesaffre edited this page Mar 3, 2019 · 2 revisions

Create a new coop

Method

POST

URL

/coop/{coopId}/{employerConfirmation}/{endDate}/{jobDescription}/{jobId}/{location}/{needWorkPermit}/{semester}/{startDate}/{studentId}/{employerId}

Params

  • int coopId: id of the coop
  • boolean employerConfirmation - confirmation of the employer (true or false)
  • String endDate - Date of the end of the coop (dd-mm-yy)
  • String jobDescription - Description of the job
  • int jobId - id of the job
  • String location - Location of the coop
  • boolean needWorkPermit - True if the coop needs a work permit, false otherwise
  • String semester - semester of the coop
  • String startDate - Date of the start of the coop (dd-mm-yy)
  • int studentId - id of the student
  • int employerId - id of the employer

Output

A JSON array of message header maps, 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: POST http://localhost:8080/coop/-3/true/04-06-2019/GreatJob/123/Montreal/false/winter/25-2-2019/-2/-2

Success Response:

  • Code: 200
  • Content:
"startDate": "2019-02-25",
"endDate": "2019-06-04",
"semester": "Winter",
"coopId": -3,
"employerConfiration": true,
"needWorkPermit": false,
"jobDescription": "GreatJob",
"location": "Montreal",
"jobId": 123,
"form": [],
"reminder": [],
"pdf": [],
"student": {},
"employer": {}

Back to REST API

Clone this wiki locally