You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anyone have thoughts on how a client could obtain a prepoulated, example resource?
For example, imagine an API for tracking inventory. The client will create a new InventoryCount resource each time they want to submit information about the in-stock inventory. Each InventoryCount has associated metadata such as the create_time, the user who did the count, etc.
When created client side, an InventoryCount will default to having an empty set of InventoryCountItems. However, the list of products is known in advance, and it would be preferable if the client could somehow download a templated or example InventoryCount, make modifications (e.g. update quantity, and then submit via CreateInventoryCount.
The text was updated successfully, but these errors were encountered:
Does anyone have thoughts on how a client could obtain a prepoulated, example resource?
For example, imagine an API for tracking inventory. The client will create a new
InventoryCount
resource each time they want to submit information about the in-stock inventory. EachInventoryCount
has associated metadata such as thecreate_time
, the user who did the count, etc.When created client side, an
InventoryCount
will default to having an empty set ofInventoryCountItem
s. However, the list of products is known in advance, and it would be preferable if the client could somehow download a templated or exampleInventoryCount
, make modifications (e.g. updatequantity
, and then submit viaCreateInventoryCount
.The text was updated successfully, but these errors were encountered: