-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
246 code cleanup #345
246 code cleanup #345
Conversation
@@ -88,16 +84,16 @@ public async Task<PollingStationInfosDTO> GetRaspunsuriFormular(ObserverAnswersR | |||
/// <code>IsFreeText = true</code></param> | |||
/// <returns></returns> | |||
[HttpPost] | |||
[Authorize("Observer")] | |||
public async Task<IActionResult> PostAnswer([FromBody] AnswerModelWrapper answerModel) | |||
//[Authorize("Observer")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, good catch
In order to ensure backward compatibility, I think we need to move this to a v2 endpoint and keep the old model for the v1 controller. |
@sandrohanea we will merge it like this (knowing it will break the contract) and I will update the ui also. |
What does it fix?
First PR for
#246
cleanup and organise classes
rename everything to english
this PR affects only the Answer endpoints, namely:
GET /api/v1/answers
POST /api/v1/answers
GET /api/v1/answers/filledIn
GET /api/v1/answers/pollingStationInfo
How has it been tested?
tested manually and ran the available unit test
changes were done to some of the contracts, this will impact the client and changes will be needed there as well