-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- The endpoint will return a quantity of items ranked by descending revenue.
- The URI should follow this pattern:
GET /api/v1/revenue/items?quantity=x - where ‘x’ is the maximum count of results to return.
- quantity should default to 10 if not provided
- endpoint should return an error if it is not an integer greater than 0.
- Example JSON response for GET /api/v1/items/revenue?quantity=1
{
"data": [
{
"id": 4,
"type": "item_revenue",
"attributes": {
"name": "Men's Titanium Ring",
"description": "Fine titanium ring",
"unit_price": 299.99,
"merchant_id": 54,
"revenue": 19823.12985
}
}
]
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels