@@ -71,29 +71,21 @@ defmodule CadetWeb.UserController do
71
71
summary("update user's game states")
72
72
security([%{JWT: []}])
73
73
consumes("application/json")
74
- produces("application/json")
75
-
74
+
76
75
parameters do
77
- new_game_states(:path , :map, "new game states", required: true)
76
+ new_game_states(:body , :map, "new game states", required: true)
78
77
end
79
78
80
- response(200, "OK", Schema.ref(:UserInfo))
81
- response(201, "Created")
82
- response(204, "No Content")
83
- response(400, "Invalid parameters")
84
- response(401, "Unauthorised")
79
+ response(200, "OK")
80
+ response(403, "Please try again later.")
85
81
end
86
82
87
83
swagger_path :clear_up_game_states do
88
84
put("/user/game_states/clear")
89
85
summary("clear up users' game data saved")
90
86
security([%{JWT: []}])
91
- consumes("application/json")
92
- produces("application/json")
93
- response(200, "OK", Schema.ref(:UserInfo))
94
- response(201, "Created")
95
- response(204, "No Content")
96
- response(401, "Unauthorised")
87
+ response(200, "OK")
88
+ response(403, "Please try again later.")
97
89
end
98
90
99
91
def swagger_definitions do
0 commit comments