Skip to content

onrewind/api_specs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On Rewind Api Specifications

Build Status License PRs Welcome

On Rewind API specifications (in OpenAPI/Swagger) used in doc-api.onrewind.tv Every updates converts the open api specs into slate markdown and then publish the static website in gh-pages branch.

Prerequisites

  • docker
  • node.js >= 8

Installation

  • clone this project
  • npm install
  • npm run docker:init

Usage

The following commands are available using npm run:

  • openapi:compile : compile split openapi spec files into one
  • openapi:watch : open a swagger ui preview in your browser, hot reload enabled if you modify any specs
  • slate:init : transpile openapi spec into slate spec and copy slate resources into tmp folder, should be run for any changes
  • slate:preview: open a slate preview in your browser, based on content in tmp folder
  • slate:compile : compile all files to build a slate static site into dist folder, based on content in tmp folder
  • docker:init : build docker image needed for slate
  • dist : combine commands to generate openapi spec and static site in one go

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details

Acknowledgments

Thanks to the following projects/organization that helps us writing better documentation :)

About

On Rewind API specifications (in OpenAPI/Swagger)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors