Revision control
Copy as Markdown
/*
* Operation Parameters Test
*
* This specification is intended for testing purposes. It demonstrates a wide range of combinations of the `style` and `explode` attributes for parameters in various locations: query, path, header, and cookie. The goal is to verify correct path and parameter generation for each case.
*
* API version: 1.0.0
*/
package openapi
import (
"github.com/gin-gonic/gin"
)
type TestAPI struct {
}
// Get /v2/path/primitive/simple-explode/:string_parameter
// Simple style with explode set to true for string path parameter.
func (api *TestAPI) SimpleExplodeString(c *gin.Context) {
// Your handler implementation
c.JSON(200, gin.H{"status": c.Request.RequestURI})
}