Open Anhdao153 opened 2 months ago
Hi @Anhdao153,
Thanks for using astra! To add a description to an API route you just need to add a comment above the handler:
// This is a test handler
testHandler(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"message": "hello world"))
}
Examples values and tagged API groups are on our backlog but we would defiantly review a PR if you wanted to contribute?
Hope that all helps!
Feature Request
I'm trying to setup a new project. I worked with nestJS, they allow me write description of APIs, group API tags, example data body,... Currently there are some hard if i wanna write description for a API (how to use it)
Maybe at a controller function. we are able to init a new struct
with routes, are there some problem if we automatic add them to APIs Tags which have already a group ?