Skip to content

Commit

Permalink
Merge pull request #112 from navikt/dev
Browse files Browse the repository at this point in the history
Prodsette dev-PR #111 og #113
  • Loading branch information
slovrid authored Oct 30, 2023
2 parents 8f236d6 + e8e564c commit b9bbee0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class EnheterController {
private final EnheterService enheterService;
private final AuthService authService;

@Deprecated(forRemoval = true)
@GetMapping
public List<OppfolgingEnhet> hentEnheter(@RequestParam("fnr") Fnr fnr, @RequestParam("tema") String tema) {
AktorId aktorid = authService.getAktorIdOrThrow(fnr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class OppgavehistorikkController {
private final AuthService authService;
private final OppgavehistorikkService oppgavehistorikkService;

@Deprecated(forRemoval = true)
@GetMapping
public List<Oppgavehistorikk> getOppgavehistorikk(@RequestParam("fnr") Fnr 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.common.types.identer.Fnr;
Expand All @@ -16,13 +17,14 @@

@RequiredArgsConstructor
@RestController
@RequestMapping("/api/v2/enheter")
@RequestMapping("/api/v2")
public class EnheterControllerV2 {

private final EnheterService enheterService;
private final AuthService authService;

@PostMapping
@PostMapping("/hent-enheter")
@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 @@ -15,13 +16,14 @@

@RequiredArgsConstructor
@RestController
@RequestMapping("/api/v2/oppgavehistorikk")
@RequestMapping("/api/v2")
public class OppgavehistorikkControllerV2 {

private final AuthService authService;
private final OppgavehistorikkService oppgavehistorikkService;

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

Expand Down

0 comments on commit b9bbee0

Please sign in to comment.