Skip to content

POST Forms TaskWorkloadReport

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

Create a new Tasks and Workload Report form

Method

POST

URL

/form/tasksWorkloadReport/{formId}/{submissionDate}/{hoursPerWeek}/{tasks}/{training}/{wage}/{coopId}

Params

  • int formId - unique ID of the form
  • String submissionDateStr - date of submission of the form
  • int hoursPerWeek - number of hours worked per week on average
  • String tasks - description of tasks and responsibilities
  • String training - description of completed training, if any
  • int wage - monthly wage
  • int coopId - unique ID of the coop to which the form is associated

Output

A JSON array of message header maps, containing the following fields:

  • int formId - unique ID of the form
  • String submissionDateStr - date of submission of the form
  • int hoursPerWeek - number of hours worked per week on average
  • String tasks - description of tasks and responsibilities
  • String training - description of completed training, if any
  • int wage - monthly wage
  • int coopId - unique ID of the coop to which the form is associated

Example

Request: POST http://localhost:8080/form/tasksWorkloadReport/12/2018-09-10/35/Helping\ to\ develop\ Junit\ 5\ tests/None/2000/43

Success Response:

  • Code: 200
  • Content:
{
"formId": 12,
"submissionDate": "2018-09-10",
"hoursPerWeek": 35,
"tasks": "Helping to develop Junit 5 tests",
"training": "None",
"wage": 2000,
"coop": 43
}

Back to REST API

Clone this wiki locally