@@ -49,6 +56,18 @@ public class FilterAppMessagesResource {
@GET @Path("/{locale}/find/{filter}")
@Produces(APPLICATION_JSON)
@Operation(tags=API_TAG_APP_RUNTIME,
summary="Find matching message for an app",
description="Find messages for an app that match a filter. The `filter` param can be a comma-separated list of keys to return messages for, or can start with \"prefix:\" to indicate to return all messages whose keys have this prefix. Return an AppMessage object with the `messages` field containing the matched messages",
@Parameter(name="filter", description="only return messages matching this filter")
},
responses={
@ApiResponse(responseCode=SC_OK, description="an AppMessage object with the `messages` field containing the matched messages"),
@ApiResponse(responseCode=SC_NOT_FOUND, description="device not found")
}
)
public AppMessage find(@Context ContainerRequest ctx,
@PathParam("locale") String locale,
@PathParam("filter") String filter) {
@@ -66,6 +85,17 @@ public class FilterAppMessagesResource {
@GET @Path("/{locale}/link/{link}")
@Produces(CONTENT_TYPE_ANY)
@Operation(tags=API_TAG_APP_RUNTIME,
summary="Load a link and return the data",
description="Load a link (from a message) and return the data. You cannot use this to load any link, only links specified by message keys for the app",