Dev Update - Week 8, 2022

in HiveDevs2 years ago

hive-plug-and-play-dev-update-week-8.png

Since my last update, I’ve worked on integrating FastAPI for API documentation with interactive access, and the first endpoint of the Podping integration. I also changed how the main HAF sync script works to allow for faster synchronizing, recovery from falling back behind the head block and fixed microfork recovery in the plug tables.

Pull requests:


Podping Integration

I added a new endpoint for @brianoflondon's Podping integration, for retrieving historical counts of Podpings. This involved creating SQL code with functions to process the custom_json ops made by Podping's protocol, storing them in tables and then writing SQL queries to access the data.


Migrate to FastAPI

fast api preview.png

I rewrote the server code for Hive Plug & Play to integrate FastAPI. This introduces interactive API access for developers and moves the codebase to OpenAPI. The following changes have been introduced as a result:

  • JSONRPC access has been deprecated

  • Use of GET and POST methods to access RESTful API

You can view the new Plug & Play documentation here:

It’s currently available on the development server only for now, I’m in the process of upgrading the production server. When done, it will be available on: Hive Plug & Play Docs .


What’s next?

Landing Page for Hive Plug & Play

The Hive Plug & Play landing page is almost done. I expect to announce its release in next week’s dev update. The landing page will help with the onboarding of new developers to Hive, where I’ll assist them in getting started with Plug & Play and related custom_json based architectures, as well as HAF-related queries.

Here’s a sneak peek of the home page (might change upon final release):

sneak peek landing page.png

More endpoint integrations for Podping

With the release of the first endpoint for Podping, a base has been set for the addition of more data structures and endpoints. I expect to work on these going forward.

Discussions feature

I’ve been working on the discussions feature for Plug & Play, which will allow dApps to add “discussion room” type features for their users. These will behave like Telegram groups, where public discussion can take place, in real-time, using Hive accounts.

That’s all for this update!


witness (1).png

I run a Hive witness node:

Sort:  

Awesome! Love the discussion room type feature. Good work. Big ups.


@imwatsi, sorry to see you have less Hive Power.
Your level lowered and you are now a Red Fish!

Check out the last post from @hivebuzz:

Today is the beginning of a new Hive Power Up Month!
Hive Power Up Day - March 1st 2022