Skip to content

trungleque/rog-codegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rog-codegen

rog-codegen turns OpenAPI 3.0 specs into Ruby on Rails code, cutting down on boilerplate so you can focus on your business logic and adding real value to your organization.

Installation

rog-codegen requires Go >= 1.20.

You can install rog-codegen as a binary:

$ go install github.com/trungvitlonx/rog-codegen@latest

Usage

rog-codegen is largely configured using a YAML configuration file, to simplify the number of flags that users need to remember.

This will create a YAML configuration file (.rog.yaml) and a sample of OpenAPI 3.0 specification file (openapi.yaml):

$ rog-codegen init

Then, to generate the code:

$ rog-codegen generate

By default, you will find the generated code at ./gen.

About

Generate Ruby on Rails API server from OpenAPI 3 specifications

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors