Swagger 2.0 implementation for go
Questions tagged [go-swagger]
94 questions
-1
votes
1 answer
Communication between microservices using go-swagger
My requirement is to call the second API (Service B) as part of a single request to Service A from an authenticated user.
I am practicing go-swagger framework through a planned project. One of the point I am trying to implement is an authentic call…

Artaghal
- 21
- 5
-1
votes
3 answers
How to change the url format for documentation rendering?
For the below code:
import (
"github.com/go-openapi/runtime/middleware"
"github.com/gorilla/mux"
)
m := mux.NewRouter()
// handlers for API
getRouter := m.Methods(http.MethodGet).Subrouter()
getRouter.HandleFunc("/v1/items",…

overexchange
- 15,768
- 30
- 152
- 347
-2
votes
5 answers
Extract filename from io.ReadCloser
I need to get the filename of certain file(s) that receives backend from the frontend. Backend (implemented in Go) will receive the file as io.ReadCloser. Is there way I could extract it from the io.ReadCloser?

Govinda Malavipathirana
- 1,095
- 2
- 11
- 29
-2
votes
1 answer
go-swagger - swagger serve command not found
I'm trying to serve a swagger.json file with the command swagger serve but I get the error
Unknown command `serve'. Please specify one command of: generate, init, validate or version
Where is the documentation getting the serve command from?

Sakib
- 1,503
- 4
- 26
- 39