mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 22:15:26 +00:00
"secret" parameter has to be a QueryParam, not a PathParam
Change-Id: I9eace4c13d3dfbff11b4a385c2dc0de2a8788de6
This commit is contained in:
1 parent
13cf8b3c70
commit
8b9f96ddf3
1 file changed
+2
-2
+2
-2
@@ -238,7 +238,7 @@ public class RegattasResource extends AbstractSailingServerResource {
|
||||
@Produces("application/json;charset=UTF-8")
|
||||
@Path("{regattaname}")
|
||||
public Response getRegatta(@PathParam("regattaname") String regattaName,
|
||||
@PathParam("secret") String regattaSecret) {
|
||||
@QueryParam("secret") String regattaSecret) {
|
||||
Response response;
|
||||
Regatta regatta = findRegattaByName(regattaName);
|
||||
if (regatta == null) {
|
||||
@@ -1525,7 +1525,7 @@ public class RegattasResource extends AbstractSailingServerResource {
|
||||
@GET
|
||||
@Produces("application/json;charset=UTF-8")
|
||||
@Path("{regattaname}/races")
|
||||
public Response getRaces(@PathParam("regattaname") String regattaName, @PathParam("secret") String regattaSecret) {
|
||||
public Response getRaces(@PathParam("regattaname") String regattaName, @QueryParam("secret") String regattaSecret) {
|
||||
Response response;
|
||||
Regatta regatta = findRegattaByName(regattaName);
|
||||
if (regatta == null) {
|
||||
|
||||
Reference in new issue
Block a user