specter-desktop/docs/api
Kim Neunert 28e13ca93c
Documentation: hosted at docs.specter.solutions (#1463)
* mkdocs

* adding mkdocs for netlify

* fix theme

* link to Readme

* deleting symlink again

* deleting index.md

* fix release-notes

* several doc improvements and elements installation

* move DEVELOPMENT.md and CONTRIBUTING.md in subfolder

* multi-site setup

* changes site_dir

* revert

* adding mkdoc-wrapper.sh

* removing mkdocs from prod-requirements

* more docs

* fix test ... no more warning
2021-11-24 18:37:46 +01:00
..
ep_liveness.md Documentation: hosted at docs.specter.solutions (#1463) 2021-11-24 18:37:46 +01:00
ep_readyness.md Documentation: hosted at docs.specter.solutions (#1463) 2021-11-24 18:37:46 +01:00
ep_specter.md Documentation: hosted at docs.specter.solutions (#1463) 2021-11-24 18:37:46 +01:00
ep_specter_fulltxlist.md Documentation: hosted at docs.specter.solutions (#1463) 2021-11-24 18:37:46 +01:00
ep_wallets_psbt.md Feature: Api framework (#1232) 2021-07-08 13:10:14 -05:00
ep_wallets_wallet.md Documentation: hosted at docs.specter.solutions (#1463) 2021-11-24 18:37:46 +01:00
README.md Documentation: hosted at docs.specter.solutions (#1463) 2021-11-24 18:37:46 +01:00

Specter API

Specter provides a Rest-API which is, by default, in production deactivated. In order to activate, you need to export a variable like that:

export SPECTER_API_ACTIVE=True

The Authentication is also necessary if you don't activate any Authentication mechanism. In order to make reasonable assumptions about how stable a specific endpoint is, we're versioning them via the URL. Currently, all endpoints are preset with v1alpha which pretty much don't give you any guarantee.

Basic Usage

Curl:

curl -u admin:secret -X GET http://127.0.0.1:25441/api/v1alpha/specter | jq .

Python:

import requests
response = requests.get('http://127.0.0.1:25441/api/v1alpha/specter', auth=('admin', 'secret'))
json.loads(response.text)

Endpoints