rrabinovitch / rails_engine_rr

ReST API for sales data
0 stars 0 forks source link

Business intelligence: Merchants with Most Items Sold endpoint #10

Open rrabinovitch opened 3 years ago

rrabinovitch commented 3 years ago

This endpoint should return a variable number of merchants ranked by total number of items sold:

The URI should follow this pattern: GET /api/v1/merchants/most_items?quantity=x

where x is the number of merchants to be returned.

NOTE: Only paid invoices should be counted in revenue totals or statistics. A paid invoice has at least one successful transaction.

rrabinovitch commented 3 years ago

Screen Shot 2020-08-30 at 2 47 33 AM