Commit 1ad3ff91 authored by Jörg Richter's avatar Jörg Richter

REST API: change get-plugin request, and 1 more (#341)

BREAKING CHANGE

change 4 get-releated requests:

## getPluginInfo()

    GET /core/plugin
    ->
    GET /core/plugins

## getRelatedTopicsWithoutChilds()

    GET /core/object/{id}/related_topics
    ->
    GET /core/object/{id}/related-topics
parent 92e70f72
Pipeline #9994 passed with stages
in 7 minutes and 58 seconds
......@@ -340,7 +340,7 @@ public class WebservicePlugin extends PluginActivator {
// === Plugins ===
@GET
@Path("/plugin")
@Path("/plugins")
public List<PluginInfo> getPluginInfo() {
return dmx.getPluginInfo();
}
......@@ -420,7 +420,7 @@ public class WebservicePlugin extends PluginActivator {
@GET
@Path("/object/{id}/related_topics")
@Path("/object/{id}/related-topics")
public List<RelatedTopic> getRelatedTopicsWithoutChilds(@PathParam("id") long objectId) {
DMXObject object = dmx.getObject(objectId);
List<RelatedTopic> relTopics = object.getRelatedTopics();
......
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