Skip to content

Converts Data Resource API descriptors to OpenAPI Specifiction 3.0 documents.

Notifications You must be signed in to change notification settings

brighthive/reference-data-resource-descriptor-to-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This is a template repo that can be used to convert your Data Resource API descriptor files to swagger documentation by using this library.

At BrightHive we use the Data Resource API to stand up a live database and API from a declarative document.

These documents are called descriptors. This repo will convert your descriptor to an OpenAPI Specification 3.0 file that thoroughly documents your API.

Instructions

  1. git clone this repo.

  2. Ensure all of your API and table names are plural in your descriptor.

  3. Add your descriptor files to the descriptor folder.

  4. Run pipenv install.

  5. Run pipenv run python main.py

  6. A number of files will be produced; copy swagger.json and paste it into swaggerhub to make it pretty and convert it to YAML.

  7. Clean up the swagger file. There will be a lot of errors.

About

Converts Data Resource API descriptors to OpenAPI Specifiction 3.0 documents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages