diff --git a/restdude-mdd/src/main/java/com/restdude/mdd/controller/AbstractPersistableModelController.java b/restdude-mdd/src/main/java/com/restdude/mdd/controller/AbstractPersistableModelController.java index e44697c0..1c0d6fb2 100644 --- a/restdude-mdd/src/main/java/com/restdude/mdd/controller/AbstractPersistableModelController.java +++ b/restdude-mdd/src/main/java/com/restdude/mdd/controller/AbstractPersistableModelController.java @@ -328,17 +328,17 @@ public JsonApiModelResourceDocument jsonApiGetById(@ApiParam(name = "id", return toDocument(super.findById(id)); } - @RequestMapping(params = "pks", method = RequestMethod.GET) + @RequestMapping(params = "ids", method = RequestMethod.GET) @ApiOperation(value = "Search by ids", notes = "Find the set of resources matching the given identifiers.") @ModelDrivenPreAuth - public ModelResources plainJsonGetByIds(@RequestParam(value = "pks[]") Set ids) { + public ModelResources plainJsonGetByIds(@RequestParam(value = "ids[]") Set ids) { return this.toHateoasResources(super.findByIds(ids)); } - @RequestMapping(params = "pks", method = RequestMethod.GET, consumes = HypermediaUtils.MIME_APPLICATION_VND_PLUS_JSON, produces = HypermediaUtils.MIME_APPLICATION_VND_PLUS_JSON) + @RequestMapping(params = "ids", method = RequestMethod.GET, consumes = HypermediaUtils.MIME_APPLICATION_VND_PLUS_JSON, produces = HypermediaUtils.MIME_APPLICATION_VND_PLUS_JSON) @ApiOperation(value = "Search by ids", notes = "Find the set of resources matching the given identifiers.") @ModelDrivenPreAuth - public JsonApiModelResourceCollectionDocument jsonApiGetByIds(@RequestParam(value = "pks[]") Set ids) { + public JsonApiModelResourceCollectionDocument jsonApiGetByIds(@RequestParam(value = "ids[]") Set ids) { return toDocument(super.findByIds(ids)); } diff --git a/restdude-mdd/src/main/java/com/restdude/mdd/model/AbstractEmbeddableManyToManyIdentifier.java b/restdude-mdd/src/main/java/com/restdude/mdd/model/AbstractEmbeddableManyToManyIdentifier.java index ee13372d..1a80befc 100644 --- a/restdude-mdd/src/main/java/com/restdude/mdd/model/AbstractEmbeddableManyToManyIdentifier.java +++ b/restdude-mdd/src/main/java/com/restdude/mdd/model/AbstractEmbeddableManyToManyIdentifier.java @@ -67,13 +67,13 @@ public abstract class AbstractEmbeddableManyToManyIdentifier