Skip to content

Commit

Permalink
allow access to entries in json format with api key (fixes #1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Apr 22, 2023
1 parent 20ab7dd commit e763ffd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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",
Expand Down
Expand Up @@ -132,7 +132,7 @@ private static FeedEntry initTestEntry() {
@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",
Expand Down

0 comments on commit e763ffd

Please sign in to comment.