Commit f9e2ae74 authored by Jörg Richter's avatar Jörg Richter

REST API: change 3 get/query-topics plural requests (#341)

BREAKING CHANGE

change 3 plural requests:

## getTopicsByType()

    GET /core/topic/type/{uri}
    ->
    GET /core/topics/type/{uri}

## queryTopics

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

## queryTopicsFulltext

    GET /core/topic/query/{query}
    ->
    GET /core/topics/query/{query}
parent 3685c00f
Pipeline #9948 passed with stages
in 8 minutes and 12 seconds
......@@ -8,7 +8,7 @@
</div>
<div class="field">
<div class="field-label">Released</div>
Apr 27, 2020
Apr 28, 2020
</div>
<div class="field">
<div class="field-label">License</div>
......
......@@ -9,7 +9,7 @@ import extraElementUI from './element-ui'
import 'font-awesome/css/font-awesome.css'
import './websocket'
console.log('[DMX] 2020/04/27')
console.log('[DMX] 2020/04/28')
// 1) Init dm5 library
// The dm5 library must be inited *before* the dm5-webclient component is instantiated.
......
......@@ -84,7 +84,7 @@ public class WebservicePlugin extends PluginActivator {
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/topic/type/{uri}")
@Path("/topics/type/{uri}")
public List<Topic> getTopicsByType(@PathParam("uri") String topicTypeUri) {
return dmx.getTopicsByType(topicTypeUri);
}
......@@ -105,14 +105,14 @@ public class WebservicePlugin extends PluginActivator {
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/topic/type/{uri}/query/{value}")
@Path("/topics/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/query/{query}")
@Path("/topics/query/{query}")
public QueryResult queryTopicsFulltext(@PathParam("query") String query,
@QueryParam("topic_type_uri") String topicTypeUri,
@QueryParam("search_child_topics") boolean 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