Our project came into discussion about URI pattern for Rest APIs. We have 90 days rate resources from each product, this API is to provide different days of rate resources for product.
The common pattern, from my understanding, is to set "days" as query params for "rate" resources:
{
"uri": "/api/products/{:id}/rates?days={:days}"
}
But the URI provided by backend developers from our team is as following:
{
"uri": "/api/products/{:id}/rates/{:days}-days"
}
I am not sure if the last one is anti-pattern, any thoughts?