Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3641

Would like to avoid using verb in REST API [closed]

$
0
0

I know that using verbs is something to avoid in REST APIs. But i have one reprocessing use case and I would like to know if I'm doing it the right way. The use case is the following.

A user triggers a process (let's call it theprocess) using POST /theprocesses endpoint. It's a fire and forget call, the user will receive a 202 back and will be notified once the process is finished (successfully or not). When the user receives a notification that the process failed, he does some action and reprocess theprocess by another API call. Using POST /theprocesses/id/reprocesses is the right choice or not?

Using POST /theprocesses/id/reprocesses is the right choice or not?


Viewing all articles
Browse latest Browse all 3641

Trending Articles