Skip to content

Instantly share code, notes, and snippets.

View imjenal's full-sized avatar
🏠
Working from home

Jyotsna Gupta imjenal

🏠
Working from home
View GitHub Profile
@imjenal
imjenal / handler_swagger.txt
Created July 22, 2019 00:21
handler_swagger
fileServer := http.FileServer(http.Dir("./swaggerui/"))
router.PathPrefix("/api/").Handler(http.StripPrefix("/api/", fileServer))
@imjenal
imjenal / swagger.txt
Last active July 22, 2019 00:30
Swagger json
{
"swagger": "2.0",
"info": {
"description": "",
"version": "1.0.0",
"title": "Swagger API Doc Example"
},
"host": "localhost:9003",
"basePath": "/",
"tags": [