I have a ProjectStep resource in my application and I have to create an API endpoint that will be used to update my ProjectStep to mark it as finished and create the next ProjectStep. In my REST API I could just do something like this :
PATCH /project-mark/1
POST /project-mark
But I would like to use only one request to update the current step, create a new one and return the newly created ProjectStep.
What method would you use? A PATCH request updating an existing resource and returning a different resource doesn't sound like a good idea.
Thank's