Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
8b07f4e7
There was an error fetching the commit references. Please try again later.
Commit
8b07f4e7
authored
7 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Fix feedback request mapping for /v2
parent
ce477efc
1 merge request
!89
Foundation for development of version 3.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/controller/v2/FeedbackController.java
+7
-6
7 additions, 6 deletions
...java/de/thm/arsnova/controller/v2/FeedbackController.java
with
7 additions
and
6 deletions
src/main/java/de/thm/arsnova/controller/v2/FeedbackController.java
+
7
−
6
View file @
8b07f4e7
...
...
@@ -43,6 +43,7 @@ import org.springframework.web.bind.annotation.RestController;
* @see ArsnovaSocketioServerImpl
*/
@RestController
(
"v2FeedbackController"
)
@RequestMapping
(
"/v2/session/{shortId}"
)
public
class
FeedbackController
extends
AbstractController
{
@Autowired
private
FeedbackService
feedbackService
;
...
...
@@ -55,14 +56,14 @@ public class FeedbackController extends AbstractController {
@DeprecatedApi
@Deprecated
@RequestMapping
(
value
=
"/
session/{shortId}/
feedback"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/feedback"
,
method
=
RequestMethod
.
GET
)
public
Feedback
getFeedback
(
@PathVariable
final
String
shortId
)
{
return
feedbackService
.
getByRoomId
(
roomService
.
getIdByShortId
(
shortId
));
}
@DeprecatedApi
@Deprecated
@RequestMapping
(
value
=
"/
session/{shortId}/
myfeedback"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
@RequestMapping
(
value
=
"/myfeedback"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
public
String
getMyFeedback
(
@PathVariable
final
String
shortId
)
{
String
roomId
=
roomService
.
getIdByShortId
(
shortId
);
Integer
value
=
feedbackService
.
getByRoomIdAndUser
(
roomId
,
userService
.
getCurrentUser
());
...
...
@@ -74,28 +75,28 @@ public class FeedbackController extends AbstractController {
@DeprecatedApi
@Deprecated
@RequestMapping
(
value
=
"/
session/{shortId}/
feedbackcount"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
@RequestMapping
(
value
=
"/feedbackcount"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
public
String
getFeedbackCount
(
@PathVariable
final
String
shortId
)
{
return
String
.
valueOf
(
feedbackService
.
countFeedbackByRoomId
(
roomService
.
getIdByShortId
(
shortId
)));
}
@DeprecatedApi
@Deprecated
@RequestMapping
(
value
=
"/
session/{shortId}/
roundedaveragefeedback"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
@RequestMapping
(
value
=
"/roundedaveragefeedback"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
public
String
getAverageFeedbackRounded
(
@PathVariable
final
String
shortId
)
{
return
String
.
valueOf
(
feedbackService
.
calculateRoundedAverageFeedback
(
roomService
.
getIdByShortId
(
shortId
)));
}
@DeprecatedApi
@Deprecated
@RequestMapping
(
value
=
"/
session/{shortId}/
averagefeedback"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
@RequestMapping
(
value
=
"/averagefeedback"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
public
String
getAverageFeedback
(
@PathVariable
final
String
shortId
)
{
return
String
.
valueOf
(
feedbackService
.
calculateAverageFeedback
(
roomService
.
getIdByShortId
(
shortId
)));
}
@DeprecatedApi
@Deprecated
@RequestMapping
(
value
=
"/
session/{shortId}/
feedback"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/feedback"
,
method
=
RequestMethod
.
POST
)
@ResponseStatus
(
HttpStatus
.
CREATED
)
public
Feedback
postFeedback
(
@PathVariable
final
String
shortId
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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