Support creating entity collections in the EntityProcessor
s4heid opened this issue · 2 comments
Is your feature request related to a problem? Please describe.
With the current implementation of EntityProcessor.createEntity, a 204 (No Content) HTTP status code is always returned, also when an entity collection is attempted to be created with a POST request.
Describe the solution you'd like
The entity should actually be created. This is not yet implemented, but should be similar to handleReadEntityResult(). Maybe this method can be reused.
This comment describes what is required to solve this issue: https://github.com/SAP/neonbee/blob/05559de7245b1828487465eee93b3f8641e84bd5/src/main/java/io/neonbee/endpoint/odatav4/internal/olingo/processor/EntityProcessor.java#L111-119
Following aspects should be taken in account:
- EntityVerticle.requestEntity should be changed to not allow for multiple verticles for create request.
- It should be clear if CREATE operation is supported by verticle and/or satellite or storage
- The notion of entity identity over all satellite systems supporting create operation should be created
- How the feature is to be tested: should the verticle responsible for entity creation store the entity in memory and providing read operation?