hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FIX]:(PHP) Refactoring API Endpoint For Getting Sales-Trend #1099

Open Pwincess1 opened 3 months ago

Pwincess1 commented 3 months ago

Description

Endpoint for getting sales-trend

Route

GET/api/v1/Dashboards/sales-trend

Response Body

[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "subscription_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "type": "product",
    "status": "Pending",
    "partners": "Paystack",
    "amount": 0,
    "reference": "string",
    "created_at": "2024-08-24T16:35:32.987Z",
    "paid_at": "2024-08-24T16:35:32.987Z",
    "modified_at": "2024-08-24T16:35:32.987Z"
  }
]
amowogbaje commented 3 months ago

@amowogbaje

amowogbaje commented 3 months ago

given to @alemsbaja