bug5409: Changed "tag" query parameter to tags, correctly representing

it'S multi valued nature
This commit is contained in:
Dennis Aulenbacher
2020-12-01 12:27:51 +01:00
parent 809be975f8
commit 22a3a9cc7b
5 changed files with 6 additions and 7 deletions
@@ -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) {
@@ -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>