eximchain / abi2api Goto Github PK
View Code? Open in Web Editor NEWAutogenerate nodejs server APIs for calling your smart contract's functions via web3.
License: Other
Autogenerate nodejs server APIs for calling your smart contract's functions via web3.
License: Other
I wanted to try this out...
Took me a while to get it running, here my quickfixes:
Now I have my api under http://localhost:8080/docs but it seems to return just example values every time. Also the GET requests do not add parameters as I would expect them to (also doesn't work if I try it manually). In code the parameter seem to never reach the method (empty object)
Just wanted to ask if this project is incomplete from where I now stand or if there might be other things to fix?
If we want to really put the cherry on top of all this magic, then we need to take that server generated by Swagger Codegen and boot it up with Swagger UI. Not sure of all the details, but I think that if we hook it up right and there's a running geth
instance, we might be able to get a GUI for a smart contract in one command. Proposed syntax is:
abi2api <path_to_contract_json> <server_output_folder> --extra-magic
It would generate the server output, run that server, run a Swagger UI installation to speak with it, and then open up the browser. Run one command and BAM, you GUI.
We're already generating the server stub and hooking it up with working geth
interactions, last step is figuring out how to make Swagger UI pass requests over to that server. Some helpful links:
swagger.yaml
, but it isn't clear if it'll auto-detect a real server.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.