@Controller(value="${jsonfeed.root-path:/feeds}")
public class JsonFeedController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLICATION_JSON_FEED |
| Constructor and Description |
|---|
JsonFeedController(JsonFeedProvider jsonFeedProvider) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<io.micronaut.http.MutableHttpResponse<?>> |
index(java.lang.Integer maxNumberOfItems,
java.lang.Integer pageNumber) |
public static final java.lang.String APPLICATION_JSON_FEED
public JsonFeedController(JsonFeedProvider jsonFeedProvider)
jsonFeedProvider - JSON Feed Provider@Produces(value="application/json+feed")
@Get(value="${jsonfeed.path:/json}{?maxNumberOfItems,pageNumber}")
public io.reactivex.Single<io.micronaut.http.MutableHttpResponse<?>> index(@QueryValue @Nullable
java.lang.Integer maxNumberOfItems,
@QueryValue @Nullable
java.lang.Integer pageNumber)
maxNumberOfItems - Max number of items in the JSON Feed. Optional.pageNumber - Requested Page. Optional.