When creating multiple entities in a POST_COLLECTION request, the name of the collection in the HAL response is the default name items instead of the Collection Name defined in the Interface.
I would expect the collection name of the POST_COLLECTION response to match the collection_name from the api-tools-rest section of the module.config.php file.
Bug Report
Summary
When creating multiple entities in a
POST_COLLECTION
request, the name of the collection in the HAL response is the default nameitems
instead of theCollection Name
defined in the Interface.Current behavior
Example:
Looking at the
module.config.php
file, thecollection_name
is present in theapi-tools-rest
section and it's used for GET collection calls :However the POST collection call doesn't use this key/value pair.
If, on the other hand, I manually add the
collection_name
to the Metadata Map, then the collection name is set correctly:How to reproduce
Create multiple entities in a single
POST
call.Expected behavior
I would expect the collection name of the
POST_COLLECTION
response to match thecollection_name
from theapi-tools-rest
section of themodule.config.php
file.Thanks and best regards, Pascal