Now I want with GET request to the API : http://localhost:1337/api/deals , I should get deal details whose deal_end_time < currentTime()

I have a content type builder with fields name deal_start _time, deal_end_time, deal_date, deal_title, deal_description.

Now I want with GET request to the API : http://localhost:1337/api/deals , I should get deal details whose deal_end_time < currentTime()

Can anyone please help how can we achieve this?

Here’s more info on how to filter requests to the REST API.

1 Like

Thanks a lot! worked for me