Comments (10)
Any updates on this? We use gin groups to version (add a version path parameter) our api, but we can only set one base path atm (we would need two).
from gin-swagger.
gin-swagger has the example about multiple api endpoints
ref: https://github.com/swaggo/gin-swagger/tree/master/example/multiple
from gin-swagger.
@easonlin404 i see the same issue when i'm trying to create a project group for the api's.Do you think you have a quick patch for this to get fixed?
from gin-swagger.
@lukepatrick @kgrvamsi Actually swag
only use annotation information to get swagger doc. And where location your 'Project' code ? swag
Not supported for cross-package models. Only search in project root folder.
from gin-swagger.
Not exactly cross-package. A modular app layout. "microservices" perhaps.
something like:
\
\app-api\
- api interface code, where a api/http binary is generated (gin code likely here)
\app-foo\
- other app needs
\pkg\
- core shared code, functions called by api or foo or other packages ('project' example)
from gin-swagger.
@lukepatrick Can you help to create a sample repo to reproduce this issue? I will check it.
from gin-swagger.
Sure, let me put something together
from gin-swagger.
actually, here is a link to an opensource project that covers my issue
https://github.com/Azure/brigade
and the api is here:
https://github.com/Azure/brigade/blob/master/brigade-api/cmd/brigade-api/main.go
from gin-swagger.
I check this issue after swag issue done.
from gin-swagger.
yeah, we also use groups. This is a biggie actually.
from gin-swagger.
Related Issues (20)
- support for 'main' package outside of project root
- use go work report swaggerFiles could not import error
- Using gin-swagger encountered a javascript error, causing the google browser not to display the swagger api page, the javascript error is as follows HOT 3
- Swagger comments in Go files are not recursively parsed by Swaggo HOT 2
- Getting all defined routes in swagger
- Question how to specify []string type in formData. HOT 1
- support for function scoped struct in type method
- Why is disabling try it out still not supported?
- Support OpenAPI 3.1
- Enable annotation readOnly HOT 1
- Serve Swagger UI on custom route without path or path extensions HOT 1
- Support for discriminator
- GO-2023-1988 found in golang.org/x/net/html
- zsh: command not found: swag HOT 2
- Option to change the order/sorting of endpoints is not supported
- Is there no way to support the sorting of interfaces under this classification? HOT 1
- Cannot find type definition: dto.CreateCityRequest HOT 1
- Error install v1.6.0
- swag init can't generate api info in swagger.json
- swagger-ui Parser error on line 13 end of the stream or a document separator is expected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gin-swagger.