+-+-+ +-+ +-+-+-+-+
|G|O| |4| |H|I|V|E|
+-+-+ +-+ +-+-+-+-+

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Bitshares ElasticSearch Wrapper and Swagger

BY: @oxarbitrage | CREATED: May 30, 2018, 9:06 p.m. | VOTES: 12 | PAYOUT: $19.44 | [ VOTE ]

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

TAGS: [ #bitshares ]

Replies

@swagadam | June 28, 2018, 12:07 a.m. | Votes: 0 | [ VOTE ]

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

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>