Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to query for objects via HTTPS API #123

Closed
job opened this issue Nov 1, 2018 · 5 comments · Fixed by #398
Closed

Allow to query for objects via HTTPS API #123

job opened this issue Nov 1, 2018 · 5 comments · Fixed by #398
Assignees
Milestone

Comments

@job
Copy link
Member

job commented Nov 1, 2018

  • All port 43 queries (such as !i) must have an equivalent in the HTTPS API
  • HTTP query pipelining or multiplexing must be available to make things fast enough

Small queries can be a GET, complex queries which have lengthy parameters will probably be POST.

For all RADB and RIPE queries we must build a table and de-duplicate between them.

Overall goal is to be able to interact with IRRd without having to use any whois commands on port 43

@job job added this to the IRRdv4 phase 2 milestone Nov 1, 2018
@job
Copy link
Member Author

job commented Nov 1, 2018

Two types of queries: 'simple' queries which search for objects, and "Server Sided Processing" (SSP) queries, an example of the former is 165.254.255.0 and the latter is !iAS15562.

For simple queries we want plaintext output, and XML output. In plaintext output you basically get back in the HTTP response body what you'd get back on port 43, the XML output the objects' attributes are split out into different elements.

For SSP queries will only output structured data (format TBD)

@mxsasha mxsasha added this to To do in IRRDv4 phase 2 part 1a Nov 1, 2018
@mxsasha mxsasha removed this from To do in IRRDv4 phase 2 part 1a Nov 7, 2019
@mxsasha mxsasha removed this from the IRRdv4 phase 2 milestone Nov 7, 2019
@devicenull
Copy link

We'd love to see this, writing code that interacts with the whois API in a reliable fashion is pretty annoying to do. Consider JSON instead of XML though (way easier to work with).

@job job added this to the IRRdv4 phase 3 milestone Dec 27, 2019
@job job added this to To do in IRRDv4 phase 3 Dec 27, 2019
@forkwhilefork
Copy link

I'd also like to register my interest. This would be really big for me for integration into other systems.

@christheradioguy
Copy link

christheradioguy commented May 29, 2020

  • raises hand* I would also love to see this feature implemented. Right now for integration I'm torn between querying the postgresql database directly or writing a whois client, an http(s) API would be fantastic.

@mxsasha mxsasha linked a pull request Sep 15, 2020 that will close this issue
31 tasks
@mxsasha mxsasha modified the milestones: IRRdv4 phase 3, Release 4.2 Sep 15, 2020
@mxsasha mxsasha removed this from To do in IRRDv4 phase 3 Sep 15, 2020
@mxsasha mxsasha added this to In progress in NTT phase 2 part 1b Sep 15, 2020
@mxsasha mxsasha self-assigned this Sep 15, 2020
@mxsasha
Copy link
Collaborator

mxsasha commented Sep 27, 2020

@christheradioguy @forkwhilefork @devicenull @job - as you've expressed previous interest in an IRRd HTTP API: we've started implementation of an HTTP interface based on GraphQL, and an experimental version is now available, see #398 (comment)

@mxsasha mxsasha moved this from In progress to Done in NTT phase 2 part 1b Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

5 participants