Add party name retrieval: implemented PartyMapper for database queries, updated ChatService with new getPartyName method, and extended /chat/party/{id}/name API endpoint.
This commit is contained in:
@@ -68,6 +68,30 @@ paths:
|
||||
$ref: "#/components/schemas/PlayerName"
|
||||
"404":
|
||||
description: Player not found
|
||||
|
||||
/chat/party/{id}/name:
|
||||
get:
|
||||
tags:
|
||||
- chat
|
||||
summary: Gets the name, of the party based on the id
|
||||
operationId: getPartyName
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: The party name
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: string
|
||||
"400":
|
||||
description: Invalid ID
|
||||
"404":
|
||||
description: Party not found
|
||||
components:
|
||||
schemas:
|
||||
PlayerName:
|
||||
|
||||
Reference in New Issue
Block a user