Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-adaptive-training
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
2
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
Service Desk
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
backend-java
kypo-adaptive-training
Merge requests
!141
Remove training instance by pool id endpoint
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove training instance by pool id endpoint
remove-ti-by-pool-id-endpoint
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
4
Merged
Lukáš Majdan
requested to merge
remove-ti-by-pool-id-endpoint
into
develop
7 months ago
Overview
0
Commits
1
Pipelines
1
Changes
4
Expand
👍
0
👎
0
Merge request reports
Viewing commit
bb8ac3bb
Show latest version
4 files
+
1
−
50
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
bb8ac3bb
Remove training instance by pool id endpoint
· bb8ac3bb
xmajdan
authored
7 months ago
src/main/java/cz/muni/ics/kypo/training/adaptive/controller/TrainingInstancesRestController.java
+
0
−
26
Options
@@ -86,32 +86,6 @@ public class TrainingInstancesRestController {
return
ResponseEntity
.
ok
(
trainingInstanceResource
);
}
/**
* Get requested Training Instance by pool id.
*
* @param poolId id of the assigned pool.
* @return Requested Training Instance by pool id.
*/
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"Get training instance by pool id."
,
response
=
TrainingInstanceDTO
.
class
,
nickname
=
"findTrainingInstanceByPoolId"
,
notes
=
"Returns training instance by pool id."
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@ApiResponses
(
value
=
{
@ApiResponse
(
code
=
200
,
message
=
"The training instance has been found"
,
response
=
TrainingInstanceDTO
.
class
),
@ApiResponse
(
code
=
404
,
message
=
"The training instance has not been found."
,
response
=
ApiError
.
class
),
@ApiResponse
(
code
=
500
,
message
=
"Unexpected condition was encountered."
,
response
=
ApiError
.
class
)
})
@GetMapping
(
path
=
"/pool/{poolId}"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ResponseEntity
<
Object
>
findTrainingInstanceByPoolId
(
@ApiParam
(
value
=
"Pool ID"
,
required
=
true
)
@PathVariable
(
"poolId"
)
Long
poolId
)
{
TrainingInstanceDTO
trainingInstanceResource
=
trainingInstanceFacade
.
findByPoolId
(
poolId
);
return
ResponseEntity
.
ok
(
trainingInstanceResource
);
}
/**
* Get Training instance access token by pool id.
*
Loading