mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
allow access to entries in json format with api key (fixes #1049)
This commit is contained in:
@@ -95,7 +95,7 @@ public class CategoryREST {
|
|||||||
@UnitOfWork
|
@UnitOfWork
|
||||||
@ApiOperation(value = "Get category entries", notes = "Get a list of category entries", response = Entries.class)
|
@ApiOperation(value = "Get category entries", notes = "Get a list of category entries", response = Entries.class)
|
||||||
@Timed
|
@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 = "id of the category, 'all' or 'starred'", required = true) @QueryParam("id") String id,
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
value = "all entries or only unread ones",
|
value = "all entries or only unread ones",
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ public class FeedREST {
|
|||||||
@UnitOfWork
|
@UnitOfWork
|
||||||
@ApiOperation(value = "Get feed entries", notes = "Get a list of feed entries", response = Entries.class)
|
@ApiOperation(value = "Get feed entries", notes = "Get a list of feed entries", response = Entries.class)
|
||||||
@Timed
|
@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 = "id of the feed", required = true) @QueryParam("id") String id,
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
value = "all entries or only unread ones",
|
value = "all entries or only unread ones",
|
||||||
|
|||||||
Reference in New Issue
Block a user