SSHOC / sshoc-marketplace-backend

Code for the backend
Apache License 2.0
2 stars 0 forks source link

create and update a workflow using a single endpoint #481

Open laureD19 opened 3 weeks ago

laureD19 commented 3 weeks ago

based on discussions started over the summer 2024, we agreed on simplifying the creation and update of Marketplace workflows content type.

The idea would be to create and update a workflow using a single endpoint, with similar information than when you get a workflow. The order of steps would matter, and steps would keep their persistent IDs.

The behaviour for POST and PUT for workflows would send a list of steps as a list of arrays where some steps would have IDs and some would not.

(From the front-end, this will mean that users will not get the possibility of reusing the steps).

@tparkola - more detailed specifications should be described for initial discussion in the following gdoc: https://docs.google.com/document/d/1F1jsI92B1M05r3aoNWIOXbV_r1GwqfnCtWtpWnjOUAs/edit?usp=sharing