Commit Graph

65 Commits

Author SHA1 Message Date
Jude Nelson
b879bdd9cc GET /v1/names requires page= argument 2017-04-13 18:42:11 -04:00
Jude Nelson
b8b2324da6 optionally include a message in a withdraw operation (useful for e.g. paying service fees to applications) 2017-04-13 17:52:04 -04:00
Jude Nelson
70e5aefd76 addresses are base58 2017-04-13 16:43:41 -04:00
Jude Nelson
1698e04537 Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-04-12 17:16:59 -04:00
Jude Nelson
cd110dd59c remove namespace API endpoints (these should only be accessed through the CLI) 2017-04-12 17:15:08 -04:00
Aaron Blankstein
d9404b5693 quick typo fixes in rpc and proxy 2017-04-12 14:14:16 -04:00
Aaron Blankstein
e53ba6d790 fixes to get the new secrets passing through stdin to work in my environment 2017-04-07 12:24:49 -04:00
Jude Nelson
45369420e1 Add endpoints for getting the Core node logfile, and for appending to the logfile 2017-04-05 16:25:53 -04:00
Jude Nelson
425b982225 log system information on API startup 2017-04-05 15:45:38 -04:00
Jude Nelson
01094b56e9 pass secrets to API runner with new secrets API 2017-04-05 15:06:13 -04:00
Jude Nelson
45962065f5 log API server version when starting (WIP: log more things) 2017-04-05 11:24:31 -04:00
Jude Nelson
3ec52b6899 fix bug in checking API version 2017-03-31 18:09:11 -04:00
Jude Nelson
1c763224c5 Have the API server report its version on ping(), and make the API client check the version before doing anything (and aborting if the client version is different) 2017-03-30 19:55:51 -04:00
Jude Nelson
8d5697e648 for API calls that take an address, re-encode them if need be to match the running system's version byte (so we can use the test framework alongside portal) 2017-03-29 01:03:38 -04:00
Jude Nelson
4f65195b6c code cleanup and refactoring---clarify why and how we wrap CLI methods to make them accessible to the API server 2017-03-28 13:24:16 -04:00
Jude Nelson
98703e8a94 start-foreground will run the API server in the foreground (no-fork) (#361) 2017-03-28 10:40:26 -04:00
Jude Nelson
c84ba60285 require 'bearer' for API password (#351); add UTXO endpoints (#362) 2017-03-27 18:09:26 -04:00
Jude Nelson
f2b941c475 accept create= and exist= qs args 2017-03-23 18:55:35 -04:00
Jude Nelson
aad5916326 datastore operations that fail due to a driver error should return HTTP 200 but with a detailed JSON error code. 2017-03-22 23:30:01 -04:00
Jude Nelson
5192e8da4c Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-03-22 15:44:10 -04:00
Jude Nelson
64c22255fd bugfixes found in testing 2017-03-22 15:40:34 -04:00
Jude Nelson
1dc1e7e057 take the signed datastore information from callers that want to mutate the datastore; take device IDs as hints on where to look for inode consistency information; stop and get the API server status from the same process 2017-03-22 14:59:08 -04:00
Jude Nelson
57c83cf6a8 add authorization header to CORS 2017-03-21 17:05:27 -04:00
Jude Nelson
13a9c3383d get idata via query string; validate response from a lookup 2017-03-17 14:37:56 -04:00
Jude Nelson
8197b865e0 allow API caller to override version checks; imporve start-up sequence to ping booting node on the right host/port 2017-03-17 11:47:29 -04:00
Jude Nelson
b8ff276d72 add -b/--bind 2017-03-16 18:03:25 -04:00
Jude Nelson
93e5c078b6 move out DELETE_DATASTORE_REQUEST_SCHEMA; fix api_bind variable 2017-03-16 18:01:14 -04:00
Jude Nelson
81cfb3700f add api_endpoint_bind to change the bind address 2017-03-16 16:18:58 -04:00
Jude Nelson
a4c83697ca add api_endpoint_host config file argument, so we can do API calls to non-localhost API daemons (i.e. containerized ones) 2017-03-16 16:12:49 -04:00
Jude Nelson
4962911757 remove dead code; add backend_signin() method for client-side token generation; fix bugs found in testing 2017-03-15 18:12:22 -04:00
Jude Nelson
52ecbc5fe0 expand client API interface to include datastore operations to help load, store, and delete inodes 2017-03-13 17:52:36 -04:00
Jude Nelson
e976083320 WIP: (de)serialize API endpoints in case the client doesn't know how 2017-03-09 20:05:00 -05:00
Jude Nelson
6c840c0a17 remove dead code 2017-03-06 14:23:32 -05:00
Jude Nelson
149dc5557a use right variable name 2017-03-02 12:17:57 -05:00
Jude Nelson
dbd870bcc3 fix altering node config fields 2017-03-02 11:50:05 -05:00
Jude Nelson
a48d407d60 do a better job translating errno into HTTP errors where appropriate; return datastore ID on datastore creation 2017-03-01 19:30:33 -05:00
Jude Nelson
eed683abc7 add config-change enpoints; stub out remaining API with HTTP 501 2017-02-28 16:26:59 -05:00
Jude Nelson
cf1119ecb2 return raw tx if given; make error messages consistent 2017-02-27 16:43:34 -05:00
Jude Nelson
5dfbd50825 allow 'tx_fee' on POST to /v1/names to renew 2017-02-26 02:42:09 -05:00
Jude Nelson
05736acc36 fix bugs in daemonization logic 2017-02-25 00:40:39 -05:00
Jude Nelson
9a8b77ebcb factor out daemonization logic so we can reuse it 2017-02-24 19:18:27 -05:00
Jude Nelson
24ed5c6954 add resources endpoint; don't require wallet keys on datastore read 2017-02-23 17:24:29 -05:00
Jude Nelson
02f8cf979a WIP: revamp the collections and stores API endpoints 2017-02-21 12:35:11 -05:00
Jude Nelson
e2de4837be significant code-cleanup. Remove legacy JSONRPC interface; rename methods from _rpc_ to _api_; get name operations to work and to accept more useful arguments; make it so we can asynchronously transfer a name after registering it; WIP revamping the storage API 2017-02-20 21:05:56 -05:00
Jude Nelson
421061e609 log different min_confs values than the defaults 2017-02-12 19:25:46 -05:00
Jude Nelson
7f76374254 remove dead code; auth bugfixes 2017-02-12 19:16:48 -05:00
Jude Nelson
8cbadb50af blockstack_constants, not blockstack_config. Also, quote paths passed to os.system() 2017-02-12 15:04:26 -05:00
Jude Nelson
d18fd4beba force address to string 2017-02-12 14:04:47 -05:00
Larry Salibra
7bf5c5bd30 add Access-Control-Allow-Headers header #294 2017-02-12 16:27:51 +02:00
Jude Nelson
2c7aa876a5 add GET and POST to /v1/wallet/balance, to query balance and transfer balance 2017-02-12 05:50:45 -05:00