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
author | oxarbitrage |
---|---|
permlink | bitshares-elasticsearch-wrapper-and-swagger |
category | bitshares |
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"} |
created | 2018-05-30 21:06:09 |
last_update | 2018-05-30 21:06:09 |
depth | 0 |
children | 1 |
last_payout | 2018-06-06 21:06:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 14.650 HBD |
curator_payout_value | 4.790 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 833 |
author_reputation | 321,201,003,590 |
root_title | "Bitshares ElasticSearch Wrapper and Swagger" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,497,767 |
net_rshares | 5,151,420,655,414 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tombstone | 0 | 4,436,405,510,920 | 20% | ||
abit | 0 | 208,831,719,382 | 100% | ||
tsugimoto | 0 | 197,580,717,255 | 100% | ||
ace108 | 0 | 44,447,334,685 | 3% | ||
marcialvieira | 0 | 610,390,398 | 100% | ||
diogogomes | 0 | 220,427,140 | 70% | ||
bobdos | 0 | 4,244,803,708 | 10% | ||
clockwork | 0 | 611,668,308 | 100% | ||
lsuny | 0 | 255,669,984,818 | 100% | ||
cyberdust | 0 | 892,784,281 | 100% | ||
matnu | 0 | 225,800,987 | 100% | ||
bangzi | 0 | 1,679,513,532 | 100% | ||
swagadam | 0 | 0 | 100% |
I'm all for that Swagger. Swaggy Swag. Swaggy Swag.
author | swagadam |
---|---|
permlink | re-oxarbitrage-bitshares-elasticsearch-wrapper-and-swagger-20180628t000751213z |
category | bitshares |
json_metadata | {"tags":["bitshares"],"app":"steemit/0.1"} |
created | 2018-06-28 00:07:51 |
last_update | 2018-06-28 00:07:51 |
depth | 1 |
children | 0 |
last_payout | 2018-07-05 00:07:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 51 |
author_reputation | 926,215,065,754 |
root_title | "Bitshares ElasticSearch Wrapper and Swagger" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 62,546,785 |
net_rshares | 0 |