browsertrix icon indicating copy to clipboard operation
browsertrix copied to clipboard

Make return value for create/update API calls more consistent

Open tw4l opened this issue 1 year ago • 1 comments
trafficstars

In some resource creation API endpoints we return the id for the object created, in others we don't. This could use a consistency pass.

@SuaYoo suggested returning the entire created object under a data key, which seems like a good idea to me!

@emma-sg suggested doing the same for PATCH requests so that we don't need to make follow-up requests from the frontend

tw4l avatar Apr 22 '24 22:04 tw4l