Skip to content

Commit

Permalink
Legg på "/hent"-postfix på endepunkter som ble migrert fra GET til POST
Browse files Browse the repository at this point in the history
  • Loading branch information
slovrid committed Oct 26, 2023
1 parent 9bdaa0b commit d22b5aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.veilarboppgave.controller.v2;

import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import no.nav.common.types.identer.AktorId;
import no.nav.common.types.identer.Fnr;
Expand All @@ -23,6 +24,7 @@ public class EnheterControllerV2 {
private final AuthService authService;

@PostMapping
@Operation(summary = "Hent enheter")
public List<OppfolgingEnhet> hentEnheter(@RequestBody EnheterRequest enheterRequest, @RequestParam("tema") String tema) {
Fnr fnr = enheterRequest.fnr();
AktorId aktorid = authService.getAktorIdOrThrow(fnr);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.veilarboppgave.controller.v2;

import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import no.nav.common.types.identer.AktorId;
import no.nav.veilarboppgave.domain.Oppgavehistorikk;
Expand All @@ -21,7 +22,8 @@ public class OppgavehistorikkControllerV2 {
private final AuthService authService;
private final OppgavehistorikkService oppgavehistorikkService;

@PostMapping
@PostMapping("/hent")
@Operation(summary = "Hent oppgavehistorikk")
public List<Oppgavehistorikk> getOppgavehistorikk(@RequestBody OppgavehistorikkRequest oppgavehistorikkRequest) {
AktorId aktorId = authService.getAktorIdOrThrow(oppgavehistorikkRequest.fnr());

Expand Down

0 comments on commit d22b5aa

Please sign in to comment.