Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pa165 Ice Hockey Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository 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
Tomáš Madeja
pa165 Ice Hockey Manager
Commits
731b8570
There was an error fetching the commit references. Please try again later.
Commit
731b8570
authored
3 years ago
by
Ján Dovjak
Browse files
Options
Downloads
Patches
Plain Diff
feat: scheduleGame and dropGame API
parent
fb32d977
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rest/src/main/java/cz/muni/fi/pa165/icehockeymanager/rest/controller/IceHockeyManagerApi.java
+11
-2
11 additions, 2 deletions
...icehockeymanager/rest/controller/IceHockeyManagerApi.java
with
11 additions
and
2 deletions
rest/src/main/java/cz/muni/fi/pa165/icehockeymanager/rest/controller/IceHockeyManagerApi.java
+
11
−
2
View file @
731b8570
...
...
@@ -63,11 +63,17 @@ public class IceHockeyManagerApi {
return
userFacade
.
getTeamsInLeague
();
}
@PostMapping
(
"/team/create"
)
public
final
void
createTeam
(
@Valid
@RequestBody
TeamCreateDTO
team
)
{
@PostMapping
(
"/team/create"
)
public
final
void
createTeam
(
@Valid
@RequestBody
TeamCreateDTO
team
)
{
leagueManagerFacade
.
createNewTeam
(
team
);
}
@PostMapping
(
"/game/create"
)
public
final
void
scheduleGame
(
@Valid
@RequestBody
GameCreateDTO
game
)
{
leagueManagerFacade
.
scheduleGame
(
game
);
}
@GetMapping
(
"/game/team/{id}"
)
public
final
Collection
<
GameDTO
>
getGamesForTeam
(
@PathVariable
Long
id
)
{
return
userFacade
.
getGamesForTeam
(
id
);
...
...
@@ -78,5 +84,8 @@ public class IceHockeyManagerApi {
return
userFacade
.
getGamesForLeague
();
}
@DeleteMapping
(
"/game/delete/{id}"
)
public
final
void
dropGame
(
@PathVariable
Long
id
)
{
leagueManagerFacade
.
dropGame
(
id
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment