gitcoinco / grants-stack-search

MIT License
2 stars 2 forks source link

return all application summaries from /applications endpoint #17

Closed bard closed 1 year ago

bard commented 1 year ago

Design

  1. Load applications data upon startup
  2. Return it on GET /applications as a top-level array property in an object, e.g. { applications: [ ... ] }. Do not return a top-level array as that makes it impossible to extend the response with metadata (e.g. offset/count in case of pagination).

Pagination, sorting, and filtering is delegated to the client side. If time allows, continue work in #24, #25, #26 to provide the functionality on the server side (note: it wouldn't save much effort on the client side as constructing queries isn't substantially faster than filtering arrays).