Initial commit

This commit is contained in:
zhongwei
2025-11-29 09:37:41 +08:00
commit bbd22ea2ff
8 changed files with 270 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
---
description: Create a new REST API endpoint
---
# Create API Endpoint Command
Generate a new RESTful API endpoint with boilerplate code.
## Example (Go)
```go
// routes.go
func SetupRoutes(r *gin.Engine) {
api := r.Group("/api/v1")
{
api.GET("/users", GetUsers)
api.POST("/users", CreateUser)
api.GET("/users/:id", GetUser)
api.PUT("/users/:id", UpdateUser)
api.DELETE("/users/:id", DeleteUser)
}
}
```