BitShares Forum

Main => General Discussion => Topic started by: R on December 27, 2017, 03:24:07 am

Title: Bitshares HUG REST API
Post by: R on December 27, 2017, 03:24:07 am
Hey,

(https://i.imgur.com/KcafNoL.png)

I've created a REST API using HUG for Bitshares over the last few days. You can't control the wallet, but you can access all data on the blockchain through get requests now.

It's fully open sourced & documented in a manner to improve ease of implementation.

Would you use this tech?

https://github.com/BTS-CM/Bitshares-HUG-REST-API

https://steemit.com/bitshares/@cm-steem/initial-release-bitshares-hug-rest-api
Title: Re: Bitshares HUG REST API
Post by: fav on December 27, 2017, 09:54:30 am
 +5%
Title: Re: Bitshares HUG REST API
Post by: R on January 15, 2018, 07:05:23 pm
Many updates to the HUG REST API since the original post. Most recently, a Bitshares testnet HUG REST API server was created! https://steemit.com/bitshares/@cm-steem/bitshares-testnet-hug-rest-api-server-now-online
Title: Re: Bitshares HUG REST API
Post by: R on February 25, 2019, 04:35:28 pm
The intention of the Bitshares HUG REST API is to provide users an open-source high performance interface to the Bitshares network through simple GET requests. It's implemented using python-bitshares, HUG, nGinx and Gunicorn to offer 'unparalleled performance'. It's fairly easy to set up for a private API and doesn't require running a full server (though do respect usage limits).

I'm interested in potentially continuing development of the Bitshares HUG REST API through a Bitshares worker proposal, I've been maintaining it for the last 2 years as a fully open source project.

Would you support such a worker proposal in the future? If so, what would you like to see included? Is anyone running their own private HUG REST API?

Potential scope of worker proposal development:

Current Github stats
* 8 stars
* 7 forks
* Forked into the bitshares github org

Last month's public HUG REST API analytics:
(https://i.imgur.com/OO7mtQr.png)

Related links:
https://github.com/BTS-CM/Bitshares-HUG-REST-API
https://github.com/bitshares/python-bitshares
Title: Re: Bitshares HUG REST API
Post by: pc on February 26, 2019, 01:07:04 pm
Please explain what you consider a "User" in your statistics.
Title: Re: Bitshares HUG REST API
Post by: R on February 26, 2019, 01:56:13 pm
Please explain what you consider a "User" in your statistics.
The Google Analytics is very limited, it's implemented using the measurement protocol as you can see here:
https://github.com/BTS-CM/Bitshares-HUG-REST-API/blob/master/hug_script.py#L74
https://developers.google.com/analytics/devguides/collection/protocol/v1/reference

The following shows device breakdown, with a 'mozilla compatible agent' being the highest, there seems to be continuous fetching of some cryptobridge market orders which Google Analytics is interpreting as between 70-100 continuous users. I'd imagine that if someone was implementing a production grade solution that they would run their own private HUG REST API with increased security though.

(https://i.imgur.com/JDlJEXe.png)

(https://i.imgur.com/GoCNUMH.png)