pocinnovation / gingen Goto Github PK
View Code? Open in Web Editor NEWA tool to generate an OpenAPI v3 specification from an existing Gin API.
License: Apache License 2.0
A tool to generate an OpenAPI v3 specification from an existing Gin API.
License: Apache License 2.0
Discover the power of the OpenAPI specification ๐ฅ
/
No response
Make sure your parser works as intended by creating tests ๐งช
You have to:
You can take a look at previous Go projects made at PoC for this, like DagViz for example ๐
/
No response
The JSON used in the functional tests is incomplete ๐
When copy-pasting it in https://editor.swagger.io/ (and converting it to YAML), several errors appear
The JSON file should be a valid and complete specification that can be used like any other specification.
/
You can use the Swagger Editor to make sure your specification is correctly formatted and contains everything ๐ฅ
No response
No response
Make sure the JSON output you generate is valid ๐ฅ
You have to:
/
No response
Parse a Go file to detect the comments that interests you ๐
You have to:
go/parser
in #6/
No response
Improve the parsing performance and generate the right JSON format ๐
You have to:
Then, you can dig into folder parsing to prepare the next feature โจ
/
No response
Learn how to interact with JSON in Go ๐ฅ
Create a simple Go program with those characteristics:
/
No response
Learn the Go language ๐
Here is what you have to do:
/
No response
Create your first specification from GinGen ๐ฅ
Use the comments you parsed using #7 to create a JSON file with basic informations:
Feel free to go further if you want ๐
/
No response
Show a concrete use case of your tool ๐
Here's what you have to do:
requestBody
for GET
responseBody
to the endpoints where it's missing/
No response
Discover the Gin framework ๐ฅ
This is what you have to do:
Pay attention to the part involving JSON, you'll need it later ๐
/
No response
Explore and create the base of the parsing part ๐
go-swagger
documentation about spec generation๐ก
go-swagger
provides a lot of features for OpenAPI specifications v2
Take a look at go/parser
, a package that could be useful ๐
Create a small presentation / draw some schema about the methods you have considered to parse a Gin API file for OpenAPI spec generation, which one you have chosen and why
Only a single file for now, we'll parse an entire app / folder later
/
No response
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.