allow access to entries in json format with api key (fixes #1049)

This commit is contained in:
Athou
2023-04-22 07:27:59 +02:00
parent 20ab7dd3e1
commit e763ffd4cf
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ public class CategoryREST {
@UnitOfWork
@ApiOperation(value = "Get category entries", notes = "Get a list of category entries", response = Entries.class)
@Timed
public Response getCategoryEntries(@ApiParam(hidden = true) @SecurityCheck User user,
public Response getCategoryEntries(@ApiParam(hidden = true) @SecurityCheck(apiKeyAllowed = true) User user,
@ApiParam(value = "id of the category, 'all' or 'starred'", required = true) @QueryParam("id") String id,
@ApiParam(
value = "all entries or only unread ones",

View File

@@ -132,7 +132,7 @@ public class FeedREST {
@UnitOfWork
@ApiOperation(value = "Get feed entries", notes = "Get a list of feed entries", response = Entries.class)
@Timed
public Response getFeedEntries(@ApiParam(hidden = true) @SecurityCheck User user,
public Response getFeedEntries(@ApiParam(hidden = true) @SecurityCheck(apiKeyAllowed = true) User user,
@ApiParam(value = "id of the feed", required = true) @QueryParam("id") String id,
@ApiParam(
value = "all entries or only unread ones",