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

REST API: change 2 get-assocs plural requests (#341)

BREAKING CHANGE

change 2 assoc plural requests:

## getAssocs(long topic1Id, long topic2Id)

    GET /core/association/multiple/{topic1_id}/{topic2_id}
    ->
    GET /core/assocs/{topic1_id}/{topic2_id}

## getAssocs(long topic1Id, long topic2Id, String assocTypeUri)

    GET /core/association/multiple/{topic1_id}/{topic2_id}/{assoc_type_uri}
    ->
    GET /core/assocs/{assoc_type_uri}/{topic1_id}/{topic2_id}
parent ec30e557
Pipeline #9967 passed with stages
in 8 minutes and 4 seconds
......@@ -184,14 +184,14 @@ public class WebservicePlugin extends PluginActivator {
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/association/multiple/{topic1_id}/{topic2_id}")
@Path("/assocs/{topic1_id}/{topic2_id}")
public List<Assoc> getAssocs(@PathParam("topic1_id") long topic1Id, @PathParam("topic2_id") long topic2Id) {
return dmx.getAssocs(topic1Id, topic2Id);
}
// Note: the "children" query parameter is handled by the core's JerseyResponseFilter
@GET
@Path("/association/multiple/{topic1_id}/{topic2_id}/{assoc_type_uri}")
@Path("/assocs/{assoc_type_uri}/{topic1_id}/{topic2_id}")
public List<Assoc> getAssocs(@PathParam("topic1_id") long topic1Id, @PathParam("topic2_id") long topic2Id,
@PathParam("assoc_type_uri") String assocTypeUri) {
return dmx.getAssocs(topic1Id, topic2Id, assocTypeUri);
......
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