Bitshares ElasticSearch Wrapper and Swagger

in #bitshares6 years ago

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

Sort:  

I'm all for that Swagger. Swaggy Swag. Swaggy Swag.

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 68123.34
ETH 2416.53
USDT 1.00
SBD 2.35