Routes
- resources
- GET resources/{id}/purchases
- resource-purchases
- GET resource-purchases/
- DELETE resource-purchases/{id}/
- POST resource-purchases/{id}/toggle
Types
- Routes
- resources
- GET resources/{id}/purchases/
Gets the API list of this resource purchases.
Inputs | Type | Description |
---|
page | integer | The page of purchases to include |
Outputs | Type | Description |
---|
purchases | ResourcePurchase[] | |
pagination | pagination | Pagination details |
resource-purchases
GET resource-purchases/
Gets the API list of resource purchases.
Inputs | Type | Description |
---|
page | integer | The page of purchases to include |
Outputs | Type | Description |
---|
pagination | pagination | Pagination details |
purchases | ResourcePurchase[] | |
DELETE resource-purchases/{id}/
Deletes the specified resource purchase.
Inputs | Type | Description |
---|
None. | | |
Outputs | Type | Description |
---|
success | true | |
POST resource-purchases/{id}/toggle
Toggles active state the specified resource purchase.
Inputs | Type | Description |
---|
None. | | |
Outputs | Type | Description |
---|
success | true | |