面向资源操作的http请求

 

Guide | Echo - High performance, minimalist Go web framework https://echo.labstack.com/guide

 

e.POST("/users", saveUser)
e.GET("/users/:id", getUser)
e.PUT("/users/:id", updateUser)
e.DELETE("/users/:id", deleteUser)

 

posted @ 2018-08-04 19:46  papering  阅读(266)  评论(0编辑  收藏  举报