4 ms·
Instead you could also POST to /star-construction to get back a link to a /star-construction/foo resource, representing a long-running creation process. This r
by wcoenen 8y ago
Instead you could also POST to /star-construction to get back a link to a /star-construction/foo resource, representing a long-running creation process.
This resource could be polled to get progress updates, and eventually a link to the created star resource, or perhaps an error describing why it didn't work.
The advantage is that you don't have to deal with two different types of resources being returned at the same URL, which complicates parsing the response. If creations are queued you also can get a view on the workload still in front of you.