cachethq / core

🚦 The core of Cachet, the open-source status page system.
https://cachethq.io
MIT License
130 stars 22 forks source link

API Sorts and Filters #34

Closed joelbutcher closed 1 year ago

joelbutcher commented 1 year ago

This PR updates MetricController::index() and IncidentController::index() to default the ordering of results by the created_at date in descending order.

Tests have been included to check this is the case, and to check the default sorting, the ability to sort and the ability to filter various resources.

Resolves #10