Commit 92e70f72 authored by Jörg Richter's avatar Jörg Richter

REST API: change 4 get-releated requests (#341)

BREAKING CHANGE

change 4 get-releated requests:

## getTopicRelatedTopics()

    GET /core/topic/{id}/related_topics
    ->
    GET /core/topic/{id}/related-topics

## getTopicRelatedAssocs()

    GET /core/topic/{id}/related_assocs
    ->
    GET /core/topic/{id}/related-assocs

## getAssocRelatedTopics()

    GET /core/association/{id}/related_topics
    ->
    GET /core/assoc/{id}/related-topics

## getAssocRelatedAssocs()

    GET /core/association/{id}/related_assocs
    ->
    GET /core/assoc/{id}/related-assocs
parent 5746d40e
Pipeline #9986 passed with stages
in 7 minutes and 49 seconds
......@@ -355,7 +355,7 @@ public class WebservicePlugin extends PluginActivator {
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/topic/{id}/related_topics")
@Path("/topic/{id}/related-topics")
public List<RelatedTopic> getTopicRelatedTopics(@PathParam("id") long topicId,
@QueryParam("assoc_type_uri") String assocTypeUri,
@QueryParam("my_role_type_uri") String myRoleTypeUri,
......@@ -367,7 +367,7 @@ public class WebservicePlugin extends PluginActivator {
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/topic/{id}/related_assocs")
@Path("/topic/{id}/related-assocs")
public List<RelatedAssoc> getTopicRelatedAssocs(@PathParam("id") long topicId,
@QueryParam("assoc_type_uri") String assocTypeUri,
@QueryParam("my_role_type_uri") String myRoleTypeUri,
......@@ -387,7 +387,7 @@ public class WebservicePlugin extends PluginActivator {
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/association/{id}/related_topics")
@Path("/assoc/{id}/related-topics")
public List<RelatedTopic> getAssocRelatedTopics(@PathParam("id") long assocId,
@QueryParam("assoc_type_uri") String assocTypeUri,
@QueryParam("my_role_type_uri") String myRoleTypeUri,
......@@ -400,7 +400,7 @@ public class WebservicePlugin extends PluginActivator {
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/association/{id}/related_assocs")
@Path("/assoc/{id}/related-assocs")
public List<RelatedAssoc> getAssocRelatedAssocs(@PathParam("id") long assocId,
@QueryParam("assoc_type_uri") String assocTypeUri,
@QueryParam("my_role_type_uri") String myRoleTypeUri,
......
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