diff --git a/docs/docs.go b/docs/docs.go index fdddb6f..7d5c224 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -367,6 +367,35 @@ const docTemplate = `{ } } }, + "/users": { + "get": { + "description": "Retrieves a list of users", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "User" + ], + "summary": "Get Users", + "responses": { + "200": { + "description": "List of users successfully retrieved", + "schema": { + "$ref": "#/definitions/bikefest_pkg_model.UserListResponse" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/bikefest_pkg_model.Response" + } + } + } + } + }, "/users/login/{user_id}": { "get": { "description": "Simulates a login process for a user by generating fake access and refresh tokens", @@ -472,15 +501,6 @@ const docTemplate = `{ "User" ], "summary": "Profile", - "parameters": [ - { - "type": "string", - "description": "User ID", - "name": "user_id", - "in": "path", - "required": true - } - ], "responses": { "200": { "description": "Profile successfully retrieved", @@ -632,35 +652,6 @@ const docTemplate = `{ } } } - }, - "/users": { - "get": { - "description": "Retrieves a list of users", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "User" - ], - "summary": "Get Users", - "responses": { - "200": { - "description": "List of users successfully retrieved", - "schema": { - "$ref": "#/definitions/bikefest_pkg_model.UserListResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/bikefest_pkg_model.Response" - } - } - } - } } }, "definitions": { diff --git a/docs/swagger.json b/docs/swagger.json index 9b49879..e19aa49 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -356,6 +356,35 @@ } } }, + "/users": { + "get": { + "description": "Retrieves a list of users", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "User" + ], + "summary": "Get Users", + "responses": { + "200": { + "description": "List of users successfully retrieved", + "schema": { + "$ref": "#/definitions/bikefest_pkg_model.UserListResponse" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/bikefest_pkg_model.Response" + } + } + } + } + }, "/users/login/{user_id}": { "get": { "description": "Simulates a login process for a user by generating fake access and refresh tokens", @@ -461,15 +490,6 @@ "User" ], "summary": "Profile", - "parameters": [ - { - "type": "string", - "description": "User ID", - "name": "user_id", - "in": "path", - "required": true - } - ], "responses": { "200": { "description": "Profile successfully retrieved", @@ -621,35 +641,6 @@ } } } - }, - "/users": { - "get": { - "description": "Retrieves a list of users", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "User" - ], - "summary": "Get Users", - "responses": { - "200": { - "description": "List of users successfully retrieved", - "schema": { - "$ref": "#/definitions/bikefest_pkg_model.UserListResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/bikefest_pkg_model.Response" - } - } - } - } } }, "definitions": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index c15f3f2..f8e5d3e 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -362,6 +362,25 @@ paths: summary: Handle LINE OAuth callback tags: - OAuth + /users: + get: + consumes: + - application/json + description: Retrieves a list of users + produces: + - application/json + responses: + "200": + description: List of users successfully retrieved + schema: + $ref: '#/definitions/bikefest_pkg_model.UserListResponse' + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/bikefest_pkg_model.Response' + summary: Get Users + tags: + - User /users/{user_id}: get: consumes: @@ -449,12 +468,6 @@ paths: consumes: - application/json description: Fetches the profile of a user - parameters: - - description: User ID - in: path - name: user_id - required: true - type: string produces: - application/json responses: @@ -535,25 +548,6 @@ paths: summary: Fake Register tags: - User - /users: - get: - consumes: - - application/json - description: Retrieves a list of users - produces: - - application/json - responses: - "200": - description: List of users successfully retrieved - schema: - $ref: '#/definitions/bikefest_pkg_model.UserListResponse' - "500": - description: Internal Server Error - schema: - $ref: '#/definitions/bikefest_pkg_model.Response' - summary: Get Users - tags: - - User securityDefinitions: ApiKeyAuth: in: header