Commit 3685c00f authored by Jörg Richter's avatar Jörg Richter

REST API: change 2 topic-query requests (#341)

BREAKING CHANGE

change 2 requests (query-topics and query-topics-fulltext):

    GET /core/topic/multi/by_value/{uri}/{value}
    ->
    GET /core/topic/type/{uri}/query/{value}

    GET /core/topic?query=...
    ->
    GET /core/topic/query/{query}?...
parent 5e645641
Pipeline #9933 passed with stages
in 7 minutes and 34 seconds
......@@ -104,17 +104,16 @@ public class WebservicePlugin extends PluginActivator {
}
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
// ### TODO: change URI template, use query params (like queryTopicsFulltext())
@GET
@Path("/topic/multi/by_value/{uri}/{value}")
@Path("/topic/type/{uri}/query/{value}")
public List<Topic> queryTopics(@PathParam("uri") String typeUri, @PathParam("value") SimpleValue value) {
return dmx.queryTopics(typeUri, value);
}
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/topic")
public QueryResult queryTopicsFulltext(@QueryParam("query") String query,
@Path("/topic/query/{query}")
public QueryResult queryTopicsFulltext(@PathParam("query") String query,
@QueryParam("topic_type_uri") String topicTypeUri,
@QueryParam("search_child_topics") boolean searchChildTopics) {
return dmx.queryTopicsFulltext(query, topicTypeUri, searchChildTopics);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment