Commit 215db789 authored by Jörg Richter's avatar Jörg Richter

REST API: change by-uri/by-type requests (#341)

BREAKING CHANGE

GET /core/topic/by_uri/{uri}
->
GET /core/topic/uri/{uri}

GET /core/topic/by_type/{uri}
->
GET /core/topic/type/{uri}
parent f4b3a46b
Pipeline #9919 passed with stages
in 8 minutes
......@@ -8,7 +8,7 @@
</div>
<div class="field">
<div class="field-label">Released</div>
Apr 26, 2020
Apr 27, 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/26')
console.log('[DMX] 2020/04/27')
// 1) Init dm5 library
// The dm5 library must be inited *before* the dm5-webclient component is instantiated.
......
......@@ -76,18 +76,16 @@ public class WebservicePlugin extends PluginActivator {
}
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
// ### TODO: change URI template to "/topic/uri/{uri}"
@GET
@Path("/topic/by_uri/{uri}")
@Path("/topic/uri/{uri}")
public Topic getTopicByUri(@PathParam("uri") String uri) {
return dmx.getTopicByUri(uri);
}
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
// ### TODO: change URI template
@GET
@Path("/topic/by_type/{topic_type_uri}")
public List<Topic> getTopicsByType(@PathParam("topic_type_uri") String topicTypeUri) {
@Path("/topic/type/{uri}")
public List<Topic> getTopicsByType(@PathParam("uri") String topicTypeUri) {
return dmx.getTopicsByType(topicTypeUri);
}
......
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