-
Notifications
You must be signed in to change notification settings - Fork 0
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
622-ergaenzen-der-apiresponses-annotation-ergebnismeldung-service #928
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package de.muenchen.oss.wahllokalsystem.ergebnismeldungservice.rest.awerte; | ||
|
||
import de.muenchen.oss.wahllokalsystem.ergebnismeldungservice.service.awerte.AWerteService; | ||
import de.muenchen.oss.wahllokalsystem.wls.common.exception.rest.model.WlsExceptionDTO; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.media.ArraySchema; | ||
import io.swagger.v3.oas.annotations.media.Content; | ||
|
@@ -38,10 +37,6 @@ public class AWerteController { | |
@ApiResponse( | ||
responseCode = "200", description = "OK", | ||
content = { @Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = AWerteDTO.class))) } | ||
), | ||
@ApiResponse( | ||
responseCode = "500", description = "Probleme bei der Verarbeitung der Anfrage", | ||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||
) | ||
} | ||
) | ||
|
@@ -57,10 +52,6 @@ public ResponseEntity<List<AWerteDTO>> getAWerte(@PathVariable("wahlbezirkID") S | |
@ApiResponse( | ||
responseCode = "200", description = "OK", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bitte aussagekräftigere description finden |
||
content = @Content(schema = @Schema()) | ||
), | ||
@ApiResponse( | ||
responseCode = "500", description = "Probleme bei der Verarbeitung der Anfrage", | ||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||
) | ||
} | ||
) | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -40,14 +40,6 @@ public class BegruendungController { | |||||||
@ApiResponse( | ||||||||
responseCode = "204", description = "Es existieren keine Begruendungen zu den entsprechenden Kriterien", | ||||||||
content = { @Content() } | ||||||||
), | ||||||||
@ApiResponse( | ||||||||
responseCode = "400", description = "Validierung der Anfrage war nicht erfolgreich", | ||||||||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||||||||
), | ||||||||
@ApiResponse( | ||||||||
responseCode = "500", description = "Probleme bei der Verarbeitung der Anfrage", | ||||||||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||||||||
) | ||||||||
} | ||||||||
) | ||||||||
|
@@ -69,10 +61,6 @@ public ResponseEntity<BegruendungDTO> getBegruendung(@PathVariable("wahlbezirkID | |||||||
@ApiResponse( | ||||||||
responseCode = "400", description = "Validierung der Anfrage war nicht erfolgreich", | ||||||||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||||||||
Comment on lines
61
to
63
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
), | ||||||||
@ApiResponse( | ||||||||
responseCode = "500", description = "Probleme bei der Verarbeitung der Anfrage", | ||||||||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||||||||
) | ||||||||
} | ||||||||
) | ||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,17 +41,9 @@ public class ErgebnismeldungController { | |
responseCode = "200", description = "Die Übermittlung war erfolgreich", | ||
content = { @Content() } | ||
), | ||
@ApiResponse( | ||
responseCode = "400", description = "Validierung der Anfrage war nicht erfolgreich", | ||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||
), | ||
@ApiResponse( | ||
responseCode = "409", description = "Die Übermittlung konnte auf Grund fehlender Daten nicht durchgeführt werden", | ||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||
Comment on lines
44
to
46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 409 steht für einen konflikt, fehlende daten sind normalerweise 400. bitte prüfen ob die response gelöscht werden kann oder die description angepasst werden muss |
||
), | ||
@ApiResponse( | ||
responseCode = "500", description = "Probleme bei der Verarbeitung der Anfrage", | ||
content = { @Content(mediaType = "application/json", schema = @Schema(implementation = WlsExceptionDTO.class)) } | ||
) | ||
} | ||
) | ||
|
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.
bitte aussagekräftigere description finden