All Projects → xavierchow → vim-swagger-preview

xavierchow / vim-swagger-preview

Licence: other
A Vim plugin for previewing swagger/openAPI spec in Chrome with swagger-ui.

Programming Languages

shell
77523 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to vim-swagger-preview

Rapipdf
PDF generation from OpenAPI / Swagger Spec
Stars: ✭ 132 (+594.74%)
Mutual labels:  openapi, swagger-ui
Swiftgger
OpenAPI support for server side Swift projects.
Stars: ✭ 97 (+410.53%)
Mutual labels:  openapi, swagger-ui
Express Oas Generator
OpenAPI (Swagger) specification generator for ExpressJS applications
Stars: ✭ 138 (+626.32%)
Mutual labels:  openapi, swagger-ui
Openapi Viewer
Browse and test a REST API described with the OpenAPI 3.0 Specification
Stars: ✭ 82 (+331.58%)
Mutual labels:  openapi, swagger-ui
OpenAPI-Viewer
OpenApi viewer Implemented using Vue
Stars: ✭ 93 (+389.47%)
Mutual labels:  openapi, swagger-ui
L5 Swagger
OpenApi or Swagger integration to Laravel
Stars: ✭ 1,781 (+9273.68%)
Mutual labels:  openapi, swagger-ui
Gradle Swagger Generator Plugin
Gradle plugin for OpenAPI YAML validation, code generation and API document publishing
Stars: ✭ 197 (+936.84%)
Mutual labels:  openapi, swagger-ui
Fastapi
FastAPI framework, high performance, easy to learn, fast to code, ready for production
Stars: ✭ 39,588 (+208257.89%)
Mutual labels:  openapi, swagger-ui
Django Rest Swagger
Swagger Documentation Generator for Django REST Framework: deprecated
Stars: ✭ 2,553 (+13336.84%)
Mutual labels:  openapi, swagger-ui
Flasgger
Easy OpenAPI specs and Swagger UI for your Flask API
Stars: ✭ 2,825 (+14768.42%)
Mutual labels:  openapi, swagger-ui
Springdoc Openapi
Library for OpenAPI 3 with spring-boot
Stars: ✭ 1,113 (+5757.89%)
Mutual labels:  openapi, swagger-ui
cakephp-swagger-bake
Automatically generate OpenAPI, Swagger, and Redoc documentation from your existing CakePHP code.
Stars: ✭ 48 (+152.63%)
Mutual labels:  openapi, swagger-ui
Rswag
Seamlessly adds a Swagger to Rails-based API's
Stars: ✭ 1,028 (+5310.53%)
Mutual labels:  openapi, swagger-ui
Angular Swagger Ui
An angularJS implementation of Swagger UI
Stars: ✭ 131 (+589.47%)
Mutual labels:  openapi, swagger-ui
Uvicorn Gunicorn Fastapi Docker
Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python 3.6 and above with performance auto-tuning. Optionally with Alpine Linux.
Stars: ✭ 1,014 (+5236.84%)
Mutual labels:  openapi, swagger-ui
Drf Yasg
Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
Stars: ✭ 2,523 (+13178.95%)
Mutual labels:  openapi, swagger-ui
Swagger Ui
Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
Stars: ✭ 21,279 (+111894.74%)
Mutual labels:  openapi, swagger-ui
Django Ninja
💨 Fast, Async-ready, Openapi, type hints based framework for building APIs
Stars: ✭ 875 (+4505.26%)
Mutual labels:  openapi, swagger-ui
Restrserve
R web API framework for building high-performance microservices and app backends
Stars: ✭ 207 (+989.47%)
Mutual labels:  openapi, swagger-ui
openapi-viewer
Browse and test a REST API described with the OpenAPI 3.0 Specification
Stars: ✭ 85 (+347.37%)
Mutual labels:  openapi, swagger-ui

Vim Swagger Preview

Intro

Swagger Editor is fancy, but my favorite editor is vim, and all my code is in vim, I don't like to copy & paste the yaml between the swagger-editor and vim. That's why I built this plugin; you can edit your yaml OpenAPI spec in vim and preview the result in Chrome.

Installation

Prerequisite

  • Chrome
  • docker
  • find the zsh script here, and cat .zshenv >> ~/.zshenv
    • Notes:
      • .zshrc doesn't work because shell script from vim is not interactive shell.
      • you can put the script above to other shell if you don't use zsh.
  • make sure port 8017 is availabe to listen on, of course you can change it here.

Plugin

  • With Pathogen: Place vim-swagger-preview/ in .vim/bundle/.
  • With Vundle:
    • Add Plugin 'xavierchow/vim-swagger-preview' to your .vimrc.
    • Launch vim and run :PluginInstall
  • With vim-plug:
    • Setup with vim-plug guide
    • Add Plug 'xavierchow/vim-swagger-preview' to your .vimrc.

Usage

File extension

This plugin only applies to yaml file with the OpenAPI spec.

Keymap for preview

The default keymap is <leader>e, it brings up a browser window and shows the swagger-ui. You can also define your keymap in vimrc.

nmap <unique> <leader>e <Plug>GenerateDiagram 

Notes: Why I named it as GenerateDiagram is that I'd like to reuse the same mapping as vim-sequence-diagram.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].