Commit Graph

78 Commits

Author SHA1 Message Date
Jude Nelson
08535ec0ee Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-05-09 18:33:11 -04:00
Jude Nelson
ec07ae9f97 be more aggressive in trying to talk to the API daemon 2017-05-09 18:31:01 -04:00
Aaron Blankstein
1024838394 better errors from the CLI when it fails to authenticate with the API service 2017-05-09 14:54:02 -04:00
Jude Nelson
a95f005037 Add a route for / that points users to documentation. 2017-05-04 18:29:27 -04:00
Jude Nelson
112ea083a0 Merge pull request #390 from spankratov/rc-0.14.2
fixed typo in backend_set_wallet
2017-05-02 11:35:17 -05:00
Jude Nelson
8b36406f1e add GET endpoint for the zone file public key 2017-05-02 11:51:21 -04:00
Jude Nelson
d7c15bb4ac remove stale pid files where appropriate; do not pass the wallet to the registrar, but instead instantiate the registrar with the wallet 2017-05-01 16:40:53 -04:00
Jude Nelson
78597a5f89 clean up imports; make the API-starting code check to see if there is a live API server (beyond checking the PID file) so we can recover from a crashed API server; make the local_api_action and local_api_start methods return meaningful error messages 2017-04-27 19:32:02 -04:00
Jude Nelson
fe08a81217 pass include_extended to getinode(); fix URL-construction bug for passing idata in getinode 2017-04-25 20:21:59 -04:00
Aaron Blankstein
52afc13bd7 adding pagination requirement to 'names in namespace' api call, and fixing bug in pagination where it would infinite loop trying to fetch pages above the total number of names 2017-04-21 14:50:40 -04:00
Jude Nelson
c1b94c1227 use virtualchain key methods 2017-04-20 17:44:27 -04:00
Jude Nelson
d95e5d74ac whitespace 2017-04-17 15:38:26 -04:00
spankratov
92497599f2 fixed typo in backend_set_wallet 2017-04-14 18:56:40 +03:00
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