eveseat / seat

🌀✳️ SeAT: A Simple, EVE Online API Tool and Corporation Manager
https://eveseat.github.io/docs/
GNU General Public License v2.0
434 stars 142 forks source link

Feature Request: API filtering #720

Closed Nfinished closed 3 years ago

Nfinished commented 3 years ago

It'd be nice to be able to filter list endpoints such as /contracts by enums like status, type or availability. Right now you have to make multiple calls to the paginated endpoint before filtering the concatenated responses.

warlof commented 3 years ago

I introduce OData filters to the API with this pull request : https://github.com/eveseat/api/pull/59 Would it suit the needs ?

Nfinished commented 3 years ago

Could you add a status filter to the contracts endpoint? Super important bit of information

warlof commented 3 years ago

/v2/character/contracts/{character_id}/?$filter=status eq 'in_progress' isn't working ?

Nfinished commented 3 years ago

Doesn't seem to be, am I doing something silly?

{{baseUrl}}/corporation/contracts/{{corpId}}?$filter=status eq 'in_progress'

Returns all contracts

warlof commented 3 years ago

are you using previously linked pull request ?

Nfinished commented 3 years ago

image

I thought this was live in the most recent minor version...