Commit 02f35b2e authored by Jörg Richter's avatar Jörg Richter

REST API: change 4 requests `/association` -> `/assoc` (#341)

BREAKING CHANGE

Change 4 requests:

## getAssocPermissions()

    GET /accesscontrol/assoc/{id}

## addAssocToTopicmap()

    POST /topicmaps/{id}/assoc/{assoc_id}

## addRelatedTopicToTopicmap()

    POST /topicmaps/{id}/topic/{topic_id}/assoc/{assoc_id}

## setAssocViewProps()

    PUT /topicmaps/{id}/assoc/{assoc_id}

Generally `/association` is now `/assoc`.
parent bf9869e5
Pipeline #10020 passed with stages
in 8 minutes and 17 seconds
......@@ -376,7 +376,7 @@ public class AccessControlPlugin extends PluginActivator implements AccessContro
}
@GET
@Path("/association/{id}")
@Path("/assoc/{id}")
@Override
public Permissions getAssocPermissions(@PathParam("id") long assocId) {
return getPermissions(assocId);
......
......@@ -76,7 +76,7 @@ export default ({store}) => {
} else if (object.isTopic()) {
return `/core/topic/${object.id}?children=true&assoc_children=true`
} else if (object.isAssoc()) {
return `/core/association/${object.id}?children=true&assoc_children=true`
return `/core/assoc/${object.id}?children=true&assoc_children=true`
}
throw Error('unexpected object')
}
......
......@@ -184,7 +184,7 @@ public class TopicmapsPlugin extends PluginActivator implements TopicmapsService
}
@POST
@Path("/{id}/association/{assoc_id}")
@Path("/{id}/assoc/{assoc_id}")
@Transactional
@Override
public void addAssocToTopicmap(@PathParam("id") final long topicmapId,
......@@ -208,7 +208,7 @@ public class TopicmapsPlugin extends PluginActivator implements TopicmapsService
}
@POST
@Path("/{id}/topic/{topic_id}/association/{assoc_id}")
@Path("/{id}/topic/{topic_id}/assoc/{assoc_id}")
@Transactional
@Override
public void addRelatedTopicToTopicmap(@PathParam("id") final long topicmapId,
......@@ -254,7 +254,7 @@ public class TopicmapsPlugin extends PluginActivator implements TopicmapsService
}
@PUT
@Path("/{id}/association/{assoc_id}")
@Path("/{id}/assoc/{assoc_id}")
@Transactional
@Override
public void setAssocViewProps(@PathParam("id") long topicmapId, @PathParam("assoc_id") long assocId,
......
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