Skip to content

Commit

Permalink
Oppdater API-dokumentasjon for "/beslutter"-endepunkta
Browse files Browse the repository at this point in the history
  • Loading branch information
slovrid committed Nov 13, 2024
1 parent 8827f60 commit d88714c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package no.nav.veilarbvedtaksstotte.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import no.nav.veilarbvedtaksstotte.service.BeslutterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
Expand All @@ -10,6 +12,7 @@

@RestController
@RequestMapping("/api/beslutter")
@Tag(name = "Beslutter", description = "Funksjonalitet knyttet til besluttere og beslutterprosesser.")
public class BeslutterController {

private final BeslutterService beslutterService;
Expand All @@ -20,6 +23,10 @@ public BeslutterController(BeslutterService beslutterService) {
}

@PostMapping("/start")
@Operation(
summary = "Start beslutterprosess",
description = "Starter en beslutterprosess for det spesifiserte vedtaksutkastet."
)
public void startBeslutterProsess(@RequestParam("vedtakId") long vedtakId) {
beslutterService.startBeslutterProsess(vedtakId);
}
Expand Down

0 comments on commit d88714c

Please sign in to comment.