nicorithner / rails_engine

Turing Module 3 - Api rails app exercise
0 stars 0 forks source link

Revenue across Date Range #28

Closed nicorithner closed 3 years ago

nicorithner commented 3 years ago

This endpoint should return the total revenue across all merchants between the given dates.

The URI should follow this pattern: GET /api/v1/revenue?start=&end=

Example JSON response for GET /api/v1/revenue?start=2012-03-09&end=2012-03-24

{
  "data": {
    "id": null,
    "attributes": {
      "revenue"  : 43201227.8000003
    }
  }
}