Add EmployeeId as filter in the endpoints, add endpoints to get all active and historical surveys for a particular employee

This commit is contained in:
Reginald Cherenfant Jasmin
2023-09-21 00:58:29 -04:00
parent 8d386af40a
commit a0033ca045
10 changed files with 347 additions and 143 deletions

View File

@ -15,7 +15,6 @@ namespace DamageAssesment.Api.Surveys.Controllers
/// <summary>
/// GET request for retrieving surveys.
/// </summary>
[Route("Surveys")]
[Route("Surveys/{language:alpha}")]
[HttpGet]
@ -47,7 +46,6 @@ namespace DamageAssesment.Api.Surveys.Controllers
/// <summary>
/// POST request for creating a new survey.
/// </summary>
[HttpPost("Surveys")]
public async Task<ActionResult> PostSurveysAsync(Models.Survey survey)
{
@ -61,8 +59,6 @@ namespace DamageAssesment.Api.Surveys.Controllers
/// <summary>
/// PUT request for updating an existing survey (surveyId,Updated Survey data).
/// </summary>
[HttpPut("Surveys/{id}")]
public async Task<ActionResult> PutSurveysAsync(int id, Models.Survey survey)
{