Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LabraCORE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
LabraCORE
Merge requests
!202
Add get all programmes endpoint
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Add get all programmes endpoint
get-all-programmes-endpoint
into
development
Overview
0
Commits
1
Pipelines
3
Changes
2
Merged
Add get all programmes endpoint
Ruben Backx
requested to merge
get-all-programmes-endpoint
into
development
Mar 2, 2023
Overview
0
Commits
1
Pipelines
3
Changes
2
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
a2328cab
1 commit,
Mar 2, 2023
2 files
+
25
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/main/java/nl/tudelft/labracore/controller/ProgramController.java
+
11
−
0
View file @ a2328cab
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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