AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Golang maps godocs12/11/2022 Golang maps godocs code#Add API Operation annotations in controller code.use ginSwagger middleware to serve the API docs "./docs" // docs is generated by Swag CLI, you have to import it.ĭ = "Swagger Example API"ĭ = "This is a sample server Petstore server."ĭ = "" The generated code package docs exports SwaggerInfo variable which we can use to set the title, description, version, host and base path programatically. R.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))Īdditionally some general API info can be set dynamically. Grants read and write access to administrative informationĪccounts.POST(":id/images", c.UploadAccountImage) This is a sample server celler server.
0 Comments
Read More
Leave a Reply. |