Skip to content
Snippets Groups Projects

Add get all programmes endpoint

2 files
+ 25
2
Compare changes
  • Side-by-side
  • Inline

Files

@@ -71,6 +71,17 @@ public class ProgramController {
return View.convert(pr.findAllById(ids), ProgramDetailsDTO.class);
}
/**
* Gets the list of all programs.
*
* @return The list of all programs
*/
@GetMapping("all")
@PreAuthorize("hasAuthority('PROGRAM_READ')")
public List<ProgramSummaryDTO> getAllPrograms() {
return View.convert(pr.findAll(), ProgramSummaryDTO.class);
}
/**
* Returns a list of all the programs relevant to a person.
*
Loading