Abit
17c46399ed
Merge pull request #145 from nathanhourt/bts_1898
...
Resolves issue https://github.com/bitshares/bitshares-core/issues/1898 : Fix crash in API
2019-08-13 19:24:18 +02:00
Nathan Hourt
06f88979a0
Resolve #1898 : Fix crash in API
...
We were getting the moral equivalent of a null pointer dereference by
incrementing an iterator past its past-the-end position, then
dereferencing it. This is now fixed.
2019-08-11 13:51:08 -05:00
Peter Conrad
7649f1f47d
Removed broken http_server + unused http_api
2019-06-06 14:54:48 +02:00
Peter Conrad
aa8870e793
Fixed JSONRPC error handling
2019-05-24 18:11:19 +02:00
Nathan Hourt
24eff3ab6d
Add API support for optional arguments
...
FC_API now supports optional arguments! Any trailing arguments of
an fc::optional type are now optional, and do not need to be
supplied. If omitted, they will be inferred to be null optionals.
2019-05-13 17:11:43 -05:00
Abit
67e5a06035
Merge pull request #119 from bitshares/shared-ws-client-ptr
...
Use shared_ptr to WS connection in API connection
2019-05-10 15:24:15 +02:00
abitmore
ed3f1c86dd
Fix signal handling in CLI
2019-05-07 19:43:37 -04:00
Peter Conrad
7f93f265c7
Merge pull request #120 from pmconrad/1584_simplification
...
1584 simplifications
2019-04-23 15:54:09 +02:00
Peter Conrad
406f1bdd61
Remove unused json_connection
2019-04-04 17:59:51 +02:00
Peter Conrad
d5b817817a
Remove unused bstate
2019-04-04 17:59:51 +02:00
Peter Conrad
579914c84d
Removed unused stuff
2019-04-04 17:59:51 +02:00
abitmore
623d96fe9a
Use shared_ptr to WS connection in API connection
2019-04-03 12:06:01 -04:00
John Jones
7b07f84f51
Fix spacing
2019-03-22 09:38:51 -05:00
John Jones
aa50364b57
help compiler infer correct templated method
2019-03-22 09:17:01 -05:00
Valera Cogut
c9d95c0c9a
Safer way to handle unlock command of cli_wallet #1171
2018-10-25 00:01:43 +03:00
Peter Conrad
1eb7b9d5c6
Added some missing checks, fixed indentation, handle different meanings of max_depth
2018-03-19 15:49:07 +01:00
Peter Conrad
a91822616e
Added max_depth to remaining variant conversions
2018-03-18 10:49:44 +01:00
Peter Conrad
271a8377a6
Adapted API conversions, incomplete
2018-03-13 22:00:18 +01:00
Peter Conrad
81c8d89341
Added max_depth parameter to variant conversions
2018-03-13 22:00:18 +01:00
Michael Vandeberg
fa63cd799f
Responses contain jsonrpc field and increased readability of errors #13
2017-04-10 11:12:24 -04:00
theoreticalbts
3dc9639bdd
api_connection.hpp: Handle deserialization of null api_ptr
2016-10-26 13:17:48 -04:00
theoreticalbts
894d784523
api_connection.hpp: Rename member variable api -> _api to avoid conflicting with type name
2016-08-15 10:59:42 -04:00
Daniel Larimer
d74f49ab04
progress on binary api connection
2016-07-30 19:25:32 -04:00
Daniel Larimer
e8e26838cc
first step toward binary RPC
2016-07-30 18:41:03 -04:00
theoreticalbts
5c1bb56177
Implement modular API support
...
- Create class `api_base` to be base class of `api<T>`, and `typedef shared_ptr<api_base> api_ptr`
- Create function `api_base::as<T>()` to allow simple downcast to `api<T>`
- Create class `any_api` to contain an API which has been returned from the remote end, but not yet cast with `as<T>`
- `to_generic()` override allowing remote API to return `api_ptr`, thus we need not know the type of the returned API at compile time
- Allow API's to be referenced by name, if we call with a string API name in the JSON the framework calls get_api_by_name on API 1 to determine the API ID
2016-04-04 00:50:56 -04:00
theoreticalbts
cb006ba03c
api_connection.hpp: Possibly fix previous commit, see https://github.com/cryptonomex/graphene/issues/232
2015-08-12 13:45:33 -04:00
theoreticalbts
3cd9ed4386
api_connection.hpp: Properly lock connection object for callbacks
2015-08-10 15:17:21 -04:00
Daniel Larimer
e9eeb3300c
adding tab completion to CLI
2015-07-27 09:11:20 -04:00
theoreticalbts
7bd47af88e
rpc: Move many method implementations from headers to cpp files
2015-06-30 15:54:29 -04:00
theoreticalbts
f461dee432
http_api: Implement http_api_connection class to serve RPC over HTTP
2015-06-30 03:00:43 -04:00
Daniel Larimer
994c4097fa
fix build
2015-05-28 08:43:43 -04:00
Daniel Larimer
a3c284408e
make CLI prompt configurable
2015-05-18 13:40:01 -04:00
Daniel Larimer
fb62b6421c
adding ssl support to websocket
2015-05-12 14:50:08 -04:00
Daniel Larimer
5dabe6ba2c
better error messages
2015-05-06 16:37:38 -04:00
Daniel Larimer
4df08d8efe
fix crash in websocket
2015-05-06 16:34:55 -04:00
theoreticalbts
80de0987d7
Add readline support to fc::rpc::cli
2015-04-29 16:37:54 -04:00
theoreticalbts
18a484e4bf
cli.hpp: Fix include
2015-04-21 15:01:25 -04:00
Daniel Larimer
257ac52b91
fix build issue
2015-04-01 11:30:47 -04:00
Daniel Larimer
c8200afade
better close notification and error handling
2015-04-01 10:25:57 -04:00
Daniel Larimer
8b5e2e7613
adding helper to get a list of variants from a string
2015-03-31 18:46:05 -04:00
Daniel Larimer
633ab3f32d
Adding cli wrapper to expose APIs to the CLI
2015-03-31 17:45:08 -04:00
Daniel Larimer
55ee57040a
added support for unhandled extension and mapping the first registered API to global namespace
2015-03-31 17:45:01 -04:00
Daniel Larimer
1fb31737a7
RPC now supports remote callbacks
...
to_variant now skips null optional members on reflected objects.
2015-03-31 11:31:56 -04:00
Daniel Larimer
bcd642e31f
fix memory leak in circular shared ptrs
2015-03-30 18:34:04 -04:00
Daniel Larimer
09e645448d
add support for void return
2015-03-30 14:08:26 -04:00
Daniel Larimer
94faa4e362
add support for const ref params and fix bugs with implict variant conversion
2015-03-30 14:05:21 -04:00
Daniel Larimer
74b707999c
fix bugs with websocket and integrate API support
2015-03-27 16:29:33 -04:00
Daniel Larimer
7008d1419a
adding websocket api stub
2015-03-26 18:38:43 -04:00
Daniel Larimer
b8d7d3012d
abstracting rpc state
2015-03-26 18:17:47 -04:00
Nathan Hourt
3b6f2978b0
Cleanup API code
2015-03-11 11:15:11 -04:00