Coder Social home page Coder Social logo

ribice / gorsk-gin Goto Github PK

View Code? Open in Web Editor NEW
105.0 105.0 24.0 2.7 MB

๐Ÿ”ฅ Idiomatic Golang Restful Starter Kit using Gin

Home Page: https://www.ribice.ba/gorsk

License: MIT License

Go 97.07% Shell 0.20% HTML 2.74%
gin go golang quickstart rest-api starter-kit

gorsk-gin's People

Contributors

julienkosinski avatar ribice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gorsk-gin's Issues

Wrong binding when swagger:operation uses parameters and swagger:parameters bind to operations at same time

here is swagger annotation about pwChange:
https://github.com/ribice/gorsk-gin/blob/master/cmd/api/service/account.go#L34

	// ---
	// summary: Changes user's password.
	// description: If user's old passowrd is correct, it will be replaced with new password.
	// parameters:
	// - name: id
	//   in: path
	//   description: id of user
	//   type: int
	//   required: true

and here is swagger:parameters:
https://github.com/ribice/gorsk-gin/blob/master/cmd/api/swagger/user.go#L16

// swagger:parameters pwChange
type swaggPwChange struct {
	// in:body
	Body request.Password
}

we expected pwChange has two parameters: name in path and change message in body.
however, in json we can see:
https://github.com/ribice/gorsk-gin/blob/master/cmd/api/swaggerui/swagger.json#L291
in my ide, it suggests this:
image

in actual ui, we also see one parameter instead of two.

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.