Skip to content

Commit

Permalink
Fiks bug der respons-typen for alle 200 OK responsar forsvann frå Swa…
Browse files Browse the repository at this point in the history
…gger UI
  • Loading branch information
slovrid committed Nov 13, 2024
1 parent 780625b commit ab43a4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public Vedtak hentUtkast(@RequestParam("fnr") Fnr fnr) {
@Operation(
summary = "Hent status på beslutterprosessen for det spesifiserte vedtaksutkastet.",
responses = {
@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation = BeslutterprosessStatusDTO.class))),
@ApiResponse(responseCode = "403", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "404", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "500", content = @Content(schema = @Schema(hidden = true)))
Expand All @@ -60,6 +61,7 @@ public BeslutterprosessStatusDTO beslutterprosessStatus(
summary = "Opprett vedtaksutkast",
description = "Oppretter et nytt vedtaksutkast knyttet til den spesifiserte brukeren.",
responses = {
@ApiResponse(responseCode = "200", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "400", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "403", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "500", content = @Content(schema = @Schema(hidden = true)))
Expand All @@ -78,6 +80,7 @@ public void lagUtkast(@RequestBody LagUtkastDTO lagUtkastDTO) {
summary = "Fatt et vedtak",
description = "Fatter et vedtak ved at det spesifiserte vedtaksutkastet låses for endringer samt at det journalføres/arkiveres og sendes til bruker.",
responses = {
@ApiResponse(responseCode = "200", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "403", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "404", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "500", content = @Content(schema = @Schema(hidden = true)))
Expand All @@ -94,6 +97,7 @@ public void fattVedtak(
summary = "Oppdater vedtaksutkast",
description = "Oppdaterer et vedtaksutkast med ny informasjon.",
responses = {
@ApiResponse(responseCode = "200", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "403", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "404", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "500", content = @Content(schema = @Schema(hidden = true)))
Expand All @@ -118,6 +122,7 @@ public boolean harUtkast(@PathVariable("fnr") Fnr fnr) {
summary = "Hent forhåndsvisning av vedtaksutkast",
description = "Genererer og returnerer et PDF-dokument for et gitt vedtaksutkast. PDF-dokumentet er en forhåndsvisning av PDF-dokumentet som eventuelt vil journalføres/arkiveres og sendes til bruker når vedtaket fattes.",
responses = {
@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(type = "string", format = "binary"))),
@ApiResponse(responseCode = "403", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "404", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "500", content = @Content(schema = @Schema(hidden = true)))
Expand All @@ -137,6 +142,7 @@ public ResponseEntity<byte[]> hentForhandsvisning(
summary = "Slett vedtaksutkast",
description = "Sletter et vedtaksutkast.",
responses = {
@ApiResponse(responseCode = "200", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "400", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "403", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "404", content = @Content(schema = @Schema(hidden = true))),
Expand All @@ -154,6 +160,7 @@ public void deleteUtkast(
summary = "Ta over som ansvarlig veileder",
description = "Innlogget/autentisert veileder tar over som ansvarlig veileder for det spesifiserte vedtaksutkastet.",
responses = {
@ApiResponse(responseCode = "200", content = @Content(schema = @Schema())),
@ApiResponse(responseCode = "403", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "404", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "500", content = @Content(schema = @Schema(hidden = true)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class UtkastV2Controller(
summary = "Hent vedtaksutkast",
description = "Henter vedtaksutkastet for en spesifisert bruker.",
responses = [
ApiResponse(responseCode = "200", content = [Content(schema = Schema(implementation = VedtakUtkastDTO::class))]),
ApiResponse(responseCode = "403", content = [Content(schema = Schema(hidden = true))]),
ApiResponse(responseCode = "404", content = [Content(schema = Schema(hidden = true))]),
ApiResponse(responseCode = "500", content = [Content(schema = Schema(hidden = true))])
Expand All @@ -42,6 +43,7 @@ class UtkastV2Controller(
summary = "Har vedtaksutkast",
description = "Sjekk om det eksisterer et vedtaksutkast for den spesifiserte brukeren.",
responses = [
ApiResponse(responseCode = "200", content = [Content(schema = Schema(implementation = Boolean::class))]),
ApiResponse(responseCode = "403", content = [Content(schema = Schema(hidden = true))]),
ApiResponse(responseCode = "500", content = [Content(schema = Schema(hidden = true))])
]
Expand Down

0 comments on commit ab43a4c

Please sign in to comment.