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

Add http rest API #55

Closed
Overtorment opened this issue Sep 11, 2018 · 6 comments
Closed

Add http rest API #55

Overtorment opened this issue Sep 11, 2018 · 6 comments

Comments

@Overtorment
Copy link

So this explorer can turn into pluggable backend for light wallet clients (once additional indexing by address is added)

@ghost ghost mentioned this issue May 7, 2019
@got3nks
Copy link

got3nks commented Dec 8, 2019

REST API would be great, +1

@mortalys
Copy link

Was the feature implemented ? Would be great to access JSON requests on page without need to go on the tabs

@fellowworldcitizen
Copy link

+1! JSON is already there! Could be as simple as adding json/1 to URL. Then show json as: [{"tabname1":json1},{"tabname2":json2}].

@pointbiz
Copy link
Contributor

There's already an API that's not documented.
See the routes/ApiRouter.js
Here's an example.
https://explorer.btc21.org/api/blocks-by-height/1

So, I presume the task would be to add more routes to that ApiRouter that reuse some logic from the routes that return HTML but instead return JSON.

And a task to make the ApI documentation.

@pointbiz
Copy link
Contributor

@janoside
Copy link
Owner

We have an API, finally! See it on the demo site at https://bitcoinexplorer.org/api/docs

This is available now for source installations and will be included in the next release coming soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@janoside @got3nks @pointbiz @Overtorment @fellowworldcitizen @mortalys and others