mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
add support for FocusReader
This commit is contained in:
@@ -57,7 +57,7 @@ import lombok.RequiredArgsConstructor;
|
|||||||
* Fever-compatible API
|
* Fever-compatible API
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>url: http://localhost:8082/rest/fever/user/${userId}</li>
|
* <li>url: /rest/fever/user/${userId}</li>
|
||||||
* <li>login: username</li>
|
* <li>login: username</li>
|
||||||
* <li>password: api key</li>
|
* <li>password: api key</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
@@ -85,7 +85,9 @@ public class FeverREST {
|
|||||||
// some readers post data using MultiPart FormData instead of the classic POST
|
// some readers post data using MultiPart FormData instead of the classic POST
|
||||||
// e.g. Raven Reader
|
// e.g. Raven Reader
|
||||||
@Consumes(MediaType.MULTIPART_FORM_DATA)
|
@Consumes(MediaType.MULTIPART_FORM_DATA)
|
||||||
@Path("/user/{userId}")
|
// some readers add a trailing /fever, just ignore it
|
||||||
|
// e.g. FocusReader
|
||||||
|
@Path("/user/{userId}{fever : (/fever)?}")
|
||||||
@POST
|
@POST
|
||||||
@UnitOfWork
|
@UnitOfWork
|
||||||
@Timed
|
@Timed
|
||||||
@@ -97,7 +99,9 @@ public class FeverREST {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
|
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
|
||||||
@Path("/user/{userId}")
|
// some clients add a trailing /fever, just ignore it
|
||||||
|
// e.g. FocusReader
|
||||||
|
@Path("/user/{userId}{fever : (/fever)?}")
|
||||||
@POST
|
@POST
|
||||||
@UnitOfWork
|
@UnitOfWork
|
||||||
@Timed
|
@Timed
|
||||||
|
|||||||
Reference in New Issue
Block a user