question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OR filtering to API endpoints

See original GitHub issue

Is your feature request related to a problem? Please describe.

Currently you need multiple requests if you want to get the same data for (for example) a number of delegates:

https://explorer.ark.io:8443/api/v2/delegates/arkx
https://explorer.ark.io:8443/api/v2/delegates/itsanametoo
https://explorer.ark.io:8443/api/v2/delegates/thegoldenhorde

Describe the solution you’d like

An OR operation so I can fetch the data in a single request:

https://explorer.ark.io:8443/api/v2/delegates/arkx,itsanametoo,thegoldenhorde

Describe alternatives you’ve considered

Additional context

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alexbarnsleycommented, Feb 13, 2019

Best place for this would probably be the search endpoint, where it would match wallets and transactions. A POST to /api/v2/delegates/search:

{
  "usernames": [
    "arkx",
    "itsanametoo",
    "thegoldenhorde"
  ]
}
0reactions
ghostcommented, Feb 26, 2019

@ItsANameToo This issue has been closed. If you wish to re-open it please provide additional information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

REST API Design: Filtering, Sorting, and Pagination - Moesif
URL parameters is the easiest way to add basic filtering to REST APIs. If you have an /items endpoint which are items for...
Read more >
How to build filtering into your REST API - Simon Plenderleith
Recently, I made a backend API for some list endpoints, and implemented filtering, sorting, and pagination. There's not really a set standard ...
Read more >
How to design RESTful search/filtering? - Stack Overflow
The idea is to introduce a new endpoint called /filters/ or /api/filters/ . Using this endpoint filter can be considered as a resource...
Read more >
Filtering in REST APIs - Developers | SAS
Filtering is the application of a Boolean condition against a collection of resources in order to subset the collection to ony those resources...
Read more >
REST Web API in Practice: Naming Endpoints, Filtering ...
In this article, we will see some practical suggestions for adopting consistent: naming conventions in our URLs (API endpoints) and URL ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found