-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from justinfarrelldev/update-lobby
Added ability to update lobbies once they have been created
- Loading branch information
Showing
9 changed files
with
610 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,39 @@ definitions: | |
description: OwnerName is the name of the lobby owner. | ||
type: string | ||
type: object | ||
lobby.LobbyParam: | ||
description: Structure for representing a player lobby with non-required fields. | ||
properties: | ||
id: | ||
description: ID is the unique identifier for the lobby. | ||
type: integer | ||
is_closed: | ||
description: IsClosed indicates if the lobby is closed. | ||
type: boolean | ||
is_muted: | ||
description: IsMuted indicates if the lobby is muted. | ||
type: boolean | ||
is_public: | ||
description: IsPublic indicates if the lobby is public. | ||
type: boolean | ||
name: | ||
description: Name is the name of the lobby. | ||
type: string | ||
owner_name: | ||
description: OwnerName is the name of the lobby owner. | ||
type: string | ||
type: object | ||
lobby.UpdateLobbyArgs: | ||
description: Structure for the lobby update request payload. | ||
properties: | ||
lobby: | ||
allOf: | ||
- $ref: '#/definitions/lobby.LobbyParam' | ||
description: The lobby to update. | ||
lobby_id: | ||
description: The lobby ID for the lobby that will be updated. | ||
type: integer | ||
type: object | ||
info: | ||
contact: | ||
email: [email protected] | ||
|
@@ -355,4 +388,35 @@ paths: | |
summary: Gets a lobby | ||
tags: | ||
- lobby | ||
/lobby/update_lobby: | ||
put: | ||
consumes: | ||
- application/json | ||
description: This endpoint updates a lobby's info. | ||
parameters: | ||
- description: lobby update request body | ||
in: body | ||
name: body | ||
required: true | ||
schema: | ||
$ref: '#/definitions/lobby.UpdateLobbyArgs' | ||
produces: | ||
- application/json | ||
responses: | ||
"200": | ||
description: Successfully updated lobby! | ||
schema: | ||
type: string | ||
"400": | ||
description: lobby_id must be specified | ||
schema: | ||
type: string | ||
"500": | ||
description: 'an error occurred while decoding the request body: <error | ||
message>' | ||
schema: | ||
type: string | ||
summary: Updates a lobby | ||
tags: | ||
- lobby | ||
swagger: "2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.