Bug: POST /projects/{id}/lifecycleevent takes wrong payload. Issues with logic are also possible.
Description
Look at the below Swagger. The provided example payload is wrong.
Acceptance criteria
[What needs to be done for the story to be complete?]
Testing scenarios
[What testing should be done to make sure the output works as expected?]
Technical notes
[Any technical details, guides, documentation, wikis, and many more that could be useful to complete this story.]
- Validate payload fields againts AbstractCollaborationLifecycleEvent.1.0.0
- Payload should not include EventId - generated and check unique
- Datetime should not be included in request - generated
- Apply ResourceIDs array / WIPResourceIDs and create Storage record ResourceCollectionID / WIP ResourceCollectionIds under the hood
- Create ENUM for reserved names (OPEN, CREATED, CLOSED, RESOURCES_ADDED, RESOURCES_DELETED, WIP_RESOURCES_ADDED, WIP_RESOURCES_DELETED, PUBLISH - Human readable Camel case), and support custom input
Edited by Dmitrii Novikov (EPAM)