Ejemplo n.º 1
0
 def get(self):
     api_root = base_url() + 'api/v1/'
     docs_url = [
         'https://docs.bigchaindb.com/projects/server/en/',
         version.__short_version__,
         '/drivers-clients/http-client-server-api.html',
     ]
     return {
         '_links': {
             'docs': ''.join(docs_url),
             'self': api_root,
             'statuses': api_root + 'statuses/',
             'transactions': api_root + 'transactions/',
         },
     }
Ejemplo n.º 2
0
 def get(self):
     api_root = base_url() + 'api/v1/'
     docs_url = [
         'https://docs.bigchaindb.com/projects/server/en/',
         version.__short_version__,
         '/drivers-clients/http-client-server-api.html',
     ]
     return {
         "_links": {
             "docs": ''.join(docs_url),
             "self": api_root,
             "statuses": api_root + "statuses/",
             "transactions": api_root + "transactions/",
         },
     }
Ejemplo n.º 3
0
 def get(self):
     docs_url = [
         'https://docs.bigchaindb.com/projects/server/en/v',
         version.__version__ + '/'
     ]
     api_v1_url = base_url() + 'api/v1/'
     return flask.jsonify({
         '_links': {
             'docs': ''.join(docs_url),
             'api_v1': api_v1_url,
         },
         'software': 'BigchainDB',
         'version': version.__version__,
         'public_key': bigchaindb.config['keypair']['public'],
         'keyring': bigchaindb.config['keyring']
     })
Ejemplo n.º 4
0
 def get(self):
     api_root = base_url() + 'api/v1/'
     websocket_root = base_ws_uri() + EVENTS_ENDPOINT
     docs_url = [
         'https://docs.bigchaindb.com/projects/server/en/v',
         version.__version__,
         '/http-client-server-api.html',
     ]
     return flask.jsonify({
         '_links': {
             'docs': ''.join(docs_url),
             'self': api_root,
             'statuses': api_root + 'statuses/',
             'transactions': api_root + 'transactions/',
             'streams_v1': websocket_root,
         },
     })
Ejemplo n.º 5
0
 def get(self):
     api_root = base_url() + 'api/v1/'
     websocket_root = base_ws_uri() + EVENTS_ENDPOINT
     docs_url = [
         'https://docs.bigchaindb.com/projects/server/en/v',
         version.__version__,
         '/http-client-server-api.html',
     ]
     return flask.jsonify({
         '_links': {
             'docs': ''.join(docs_url),
             'self': api_root,
             'statuses': api_root + 'statuses/',
             'transactions': api_root + 'transactions/',
             'streams_v1': websocket_root,
         },
     })
Ejemplo n.º 6
0
 def get(self):
     docs_url = [
         'https://docs.bigchaindb.com/projects/server/en/',
         version.__short_version__ + '/'
     ]
     api_v1_url = base_url() + 'api/v1/'
     return flask.jsonify({
         '_links': {
             'docs': ''.join(docs_url),
             'api_v1': api_v1_url,
         },
         'software':
         'BigchainDB',
         'version':
         version.__version__,
         'public_key':
         bigchaindb.config['keypair']['public'],
         'keyring':
         bigchaindb.config['keyring']
     })