🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/davix/serve-swagger-ui-in-go-demo

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/davix/serve-swagger-ui-in-go-demo

v0.0.0-20200719020030-6af1568aa30c
Source
Go
Version published
Created
Source

Serve Swagger-UI for your Go app's APIs

I have a simple requirement:

  • to host a swagger-ui for my Go app's REST APIs

Main porpose is not only to provide API documentation, but also to use API console to execute the APIs.

However, it's not a simple task to find an existing and simple solution.

Until the most recent commit of openapi, it becomes simple finally.

Intro

This repo is a simplest demo to serve a swagger-ui for you REST APIs. Just

  • Download the code.
  • go run main.go
  • Visit http://localhost:8344/docs
  • Enjoy it.

Screenshot

swagger-ui-screenshot

A bit explantion

FAQs

Package last updated on 19 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts