create account

Bitshares ElasticSearch Wrapper and Swagger by oxarbitrage

View this thread on: hive.blogpeakd.comecency.com
· @oxarbitrage ·
$19.44
Bitshares ElasticSearch Wrapper and Swagger
In an effort to encourage the use of the elasticsearch-wrapper: https://github.com/oxarbitrage/bitshares-es-wrapper

Swagger apidocs was added to the api: http://185.208.208.184:5000/apidocs/#!/wrapper/

This was simply done by installing flasgger(https://github.com/rochacbruno/flasgger) and calling a yaml file from the wrapper.

You can check how flask app add flasgger support in the implementation commit: https://github.com/oxarbitrage/bitshares-es-wrapper/commit/89ed7c036dd83a530995641ae186fbcabbf308c5

Yaml file is where all the work is done, can be found for this project here: https://github.com/oxarbitrage/bitshares-es-wrapper/blob/master/wrapper.yaml

It needs some more work but i plan this to be implemented also in other apis of similar kind specifically: https://github.com/oxarbitrage/bitshares-python-api-backend
👍  , , , , , , , , , , , ,
properties (23)
authoroxarbitrage
permlinkbitshares-elasticsearch-wrapper-and-swagger
categorybitshares
json_metadata{"tags":["bitshares"],"links":["https://github.com/oxarbitrage/bitshares-es-wrapper","http://185.208.208.184:5000/apidocs/#!/wrapper/","https://github.com/rochacbruno/flasgger","https://github.com/oxarbitrage/bitshares-es-wrapper/commit/89ed7c036dd83a530995641ae186fbcabbf308c5","https://github.com/oxarbitrage/bitshares-es-wrapper/blob/master/wrapper.yaml","https://github.com/oxarbitrage/bitshares-python-api-backend"],"app":"steemit/0.1","format":"markdown"}
created2018-05-30 21:06:09
last_update2018-05-30 21:06:09
depth0
children1
last_payout2018-06-06 21:06:09
cashout_time1969-12-31 23:59:59
total_payout_value14.650 HBD
curator_payout_value4.790 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length833
author_reputation321,201,003,590
root_title"Bitshares ElasticSearch Wrapper and Swagger"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,497,767
net_rshares5,151,420,655,414
author_curate_reward""
vote details (13)
@swagadam ·
I'm all for that Swagger. Swaggy Swag. Swaggy Swag.
properties (22)
authorswagadam
permlinkre-oxarbitrage-bitshares-elasticsearch-wrapper-and-swagger-20180628t000751213z
categorybitshares
json_metadata{"tags":["bitshares"],"app":"steemit/0.1"}
created2018-06-28 00:07:51
last_update2018-06-28 00:07:51
depth1
children0
last_payout2018-07-05 00:07:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length51
author_reputation926,215,065,754
root_title"Bitshares ElasticSearch Wrapper and Swagger"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,546,785
net_rshares0