mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
bug5409: Changed "tag" query parameter to tags, correctly representing
it'S multi valued nature
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ public class CourseTemplateResource extends SharedAbstractSailingServerResource
|
||||
|
||||
@GET
|
||||
@Produces("application/json;charset=UTF-8")
|
||||
public Response getCourseTemplates(@QueryParam("tag") List<String> tags) throws Exception {
|
||||
public Response getCourseTemplates(@QueryParam("tags") List<String> tags) throws Exception {
|
||||
Iterable<CourseTemplate> courseTemplateList = getSharedSailingData().getAllCourseTemplates(tags);
|
||||
JSONArray result = new JSONArray();
|
||||
for (CourseTemplate courseTemplate : courseTemplateList) {
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Optional parameters:</td>
|
||||
<td>tag: tag for filtering. Multiple tags are allowed. If no tag is specified, no filtering by tag will be done.<br>
|
||||
<td>tags: tags for filtering. Multiple tags are allowed. If no tag is specified, no filtering by tag will be done.<br>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Request method:</td>
|
||||
|
||||
Reference in New Issue
Block a user