Giter Site home page Giter Site logo

Support for gin RouterGroup about gin-swagger HOT 10 OPEN

swaggo avatar swaggo commented on April 28, 2024 2
Support for gin RouterGroup

from gin-swagger.

Comments (10)

danikalmar avatar danikalmar commented on April 28, 2024 1

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.

gaozhidf avatar gaozhidf commented on April 28, 2024 1

gin-swagger has the example about multiple api endpoints
ref: https://github.com/swaggo/gin-swagger/tree/master/example/multiple

from gin-swagger.

kgrvamsi avatar kgrvamsi commented on April 28, 2024

@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.

easonlin404 avatar easonlin404 commented on April 28, 2024

@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.

lukepatrick avatar lukepatrick commented on April 28, 2024

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.

easonlin404 avatar easonlin404 commented on April 28, 2024

@lukepatrick Can you help to create a sample repo to reproduce this issue? I will check it.

from gin-swagger.

lukepatrick avatar lukepatrick commented on April 28, 2024

Sure, let me put something together

from gin-swagger.

lukepatrick avatar lukepatrick commented on April 28, 2024

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.

pei0804 avatar pei0804 commented on April 28, 2024

I check this issue after swag issue done.

from gin-swagger.

shkvrtz avatar shkvrtz commented on April 28, 2024

yeah, we also use groups. This is a biggie actually.

from gin-swagger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.