WIP
This commit is contained in:
@ -25,7 +25,7 @@ var _ = Service("front", func() {
|
||||
Error("NotFound")
|
||||
|
||||
HTTP(func() {
|
||||
GET("/Item/{id}")
|
||||
GET("/item/{id}")
|
||||
Response(StatusOK)
|
||||
Response(StatusBadRequest)
|
||||
Response(StatusNotFound)
|
||||
@ -41,8 +41,7 @@ var _ = Service("front", func() {
|
||||
Error("BadRequest")
|
||||
|
||||
HTTP(func() {
|
||||
POST("/Item")
|
||||
Body(Item)
|
||||
POST("/item")
|
||||
Response(StatusOK)
|
||||
Response(StatusBadRequest)
|
||||
})
|
||||
@ -55,8 +54,7 @@ var _ = Service("front", func() {
|
||||
Error("BadRequest")
|
||||
|
||||
HTTP(func() {
|
||||
PUT("/Item/{id}")
|
||||
Body(Item)
|
||||
PUT("/item/{id}")
|
||||
Response(StatusOK)
|
||||
Response(StatusBadRequest)
|
||||
Response(StatusNotFound)
|
||||
@ -70,7 +68,7 @@ var _ = Service("front", func() {
|
||||
Error("BadRequest")
|
||||
|
||||
HTTP(func() {
|
||||
POST("/Item/{id}")
|
||||
POST("/item/{id}")
|
||||
Response(StatusOK)
|
||||
Response(StatusBadRequest)
|
||||
Response(StatusNotFound)
|
||||
@ -84,7 +82,7 @@ var _ = Service("front", func() {
|
||||
Error("BadRequest")
|
||||
|
||||
HTTP(func() {
|
||||
GET("/Character/{id}")
|
||||
GET("/character/{id}")
|
||||
Response(StatusOK)
|
||||
Response(StatusBadRequest)
|
||||
Response(StatusNotFound)
|
||||
@ -101,7 +99,7 @@ var _ = Service("front", func() {
|
||||
Error("NotFound")
|
||||
|
||||
HTTP(func() {
|
||||
POST("/Character")
|
||||
POST("/character")
|
||||
Body(Character)
|
||||
Response(StatusBadRequest)
|
||||
Response(StatusOK)
|
||||
@ -116,7 +114,7 @@ var _ = Service("front", func() {
|
||||
Error("BadRequest")
|
||||
|
||||
HTTP(func() {
|
||||
PUT("/Character/{id}")
|
||||
PUT("/character/{id}")
|
||||
Body(Character)
|
||||
Response(StatusOK)
|
||||
Response(StatusBadRequest)
|
||||
@ -131,7 +129,7 @@ var _ = Service("front", func() {
|
||||
Error("BadRequest")
|
||||
|
||||
HTTP(func() {
|
||||
POST("/Character/{id}")
|
||||
POST("/character/{id}")
|
||||
Response(StatusOK)
|
||||
Response(StatusBadRequest)
|
||||
Response(StatusNotFound)
|
||||
|
Reference in New Issue
Block a user