Commit 5746d40e authored by Jörg Richter's avatar Jörg Richter

REST API: change 3 assocs write requests (#341)

BREAKING CHANGE

change 3 assoc write requests:

## createAssoc()

    POST /core/association
    ->
    POST /core/assoc

## updateAssoc()

    PUT /core/association/{id}
    ->
    PUT /core/assoc/{id}

## deleteAssoc()

    DELETE /core/association/{id}
    ->
    DELETE /core/assoc/{id}
parent e5cb2bf6
Pipeline #9976 passed with stages
in 8 minutes and 11 seconds
......@@ -200,14 +200,14 @@ public class WebservicePlugin extends PluginActivator {
// ---
@POST
@Path("/association")
@Path("/assoc")
@Transactional
public DirectivesResponse createAssoc(AssocModel model) {
return new DirectivesResponse(dmx.createAssoc(model));
}
@PUT
@Path("/association/{id}")
@Path("/assoc/{id}")
@Transactional
public DirectivesResponse updateAssoc(@PathParam("id") long assocId, AssocModel model) {
if (model.getId() != -1 && assocId != model.getId()) {
......@@ -219,7 +219,7 @@ public class WebservicePlugin extends PluginActivator {
}
@DELETE
@Path("/association/{id}")
@Path("/assoc/{id}")
@Transactional
public DirectivesResponse deleteAssoc(@PathParam("id") long assocId) {
dmx.deleteAssoc(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