nicorithner / rails_engine

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

Revenue for a Merchant #29

Open nicorithner opened 3 years ago

nicorithner commented 3 years ago

This endpoint should return the total revenue for a single merchant.

The URI should follow this pattern: GET /api/v1/merchants/:id/revenue

Example JSON response for GET /api/v1/merchants/1/revenue

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