Skip to content

Commit

Permalink
sjekker hvordan dette fungerer på swagger #deploy-levende-arbeidsforh…
Browse files Browse the repository at this point in the history
…old-ansettelse
  • Loading branch information
Andrea-Devold-Fjeld committed Jul 25, 2024
1 parent 9eef07b commit e7ee77c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ public class JobbController {
private final AnsettelseService ansettelseService;

@GetMapping
public ResponseEntity<List<JobbParameterVerdier>> hentAlleJobber() {
return ResponseEntity.ok(jobbService.hentAlleParametereMedVerdier());
public ResponseEntity<List<JobbParameter>> hentAlleJobber() {
return ResponseEntity.ok(jobbService.hentAlleParametere());
}
/*
@GetMapping("/parameter2")
public ResponseEntity<List<JobbParameterVerdier>> hentAlleJobber2(){
return ResponseEntity.ok(jobbService.hentAlleParametereMedVerdier());
}
*/

@GetMapping("/verdi/{parameterNavn}")
public ResponseEntity<List<String>> hentVerdier(@PathVariable("parameterNavn") String parameternavn) {
JobbParameter jobbParameter = jobbService.hentJobbParameter(parameternavn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public class test {

private final JobbService jobbService;
private final KodeverkService kodeverkService;
//@EventListener(ApplicationReadyEvent.class)
@EventListener(ApplicationReadyEvent.class)
public void testDb() {
/*

List<JobbParameter> jobb2 = jobbService.hentAlleParametere();
log.info("jobb2: {}", jobb2.toString() );
List<JobbParameterVerdier> jobb = jobbService.hentAlleParametereMedVerdier();
log.info("JobbParameteVerdier: {}", jobb.toString());

*/

/*
List<JobbParameter> jobb = jobbService.hentAlleParametere();
List<String> test = jobbService.finnAlleVerdier(jobb.getFirst());
Expand Down

0 comments on commit e7ee77c

Please sign in to comment.