Skip to content

Commit

Permalink
Document previously unspecified but already implemented MXID header
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Jul 8, 2024
1 parent 7f5d413 commit 1dc7515
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/openapi/TiMessengerContactManagement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ paths:
$ref: "#/components/responses/DefaultResponse"

/contacts:
parameters:
- $ref: "#/components/parameters/mxidHeader"

get:
tags:
- getContacts
Expand Down Expand Up @@ -138,6 +141,7 @@ paths:

/contacts/{mxid}:
parameters:
- $ref: "#/components/parameters/mxidHeader"
- $ref: "#/components/parameters/mxid"

get:
Expand Down Expand Up @@ -177,6 +181,14 @@ components:

parameters:

mxidHeader:
name: Mxid
in: header
description: MXID of the contact settings owner. MUST match with the
MXID resolved from the Matrix-OpenID-Token.
required: true
schema:
type: string
mxid:
name: mxid
in: path
Expand Down

0 comments on commit 1dc7515

Please sign in to comment.