Remove keyId
from the server keys endpoints (#1350)
* Remove keyId from the server keys endpoints It has been deprecated forever. Besides, the OpenAPI 3 spec doesn't allow optional path parameters. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Add newsfragment Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Fix broken link Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Mention MSC3938 in newfragment Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
eb2456c7d4
commit
9e45037129
5 changed files with 9 additions and 32 deletions
|
@ -25,7 +25,7 @@ consumes:
|
|||
produces:
|
||||
- application/json
|
||||
paths:
|
||||
"/query/{serverName}/{keyId}":
|
||||
"/query/{serverName}":
|
||||
get:
|
||||
summary: Query for another server's keys
|
||||
description: |-
|
||||
|
@ -39,17 +39,6 @@ paths:
|
|||
description: The server's DNS name to query
|
||||
required: true
|
||||
x-example: matrix.org
|
||||
- in: path
|
||||
name: keyId
|
||||
type: string
|
||||
description: |-
|
||||
**Deprecated**. Servers should not use this parameter and instead
|
||||
opt to return all keys, not just the requested one. The key ID to
|
||||
look up.
|
||||
|
||||
When excluded, the trailing slash on this endpoint is optional.
|
||||
required: false
|
||||
x-example: "ed25519:abc123"
|
||||
- in: query
|
||||
name: minimum_valid_until_ts
|
||||
type: integer
|
||||
|
|
|
@ -23,7 +23,7 @@ basePath: /_matrix/key/v2
|
|||
produces:
|
||||
- application/json
|
||||
paths:
|
||||
"/server/{keyId}":
|
||||
"/server":
|
||||
get:
|
||||
summary: Get the homeserver's public key(s)
|
||||
description: |-
|
||||
|
@ -43,19 +43,6 @@ paths:
|
|||
from the server so that the signatures of old events can still be
|
||||
checked.
|
||||
operationId: getServerKey
|
||||
parameters:
|
||||
- in: path
|
||||
name: keyId
|
||||
type: string
|
||||
description: |-
|
||||
**Deprecated**. Servers should not use this parameter and instead
|
||||
opt to return all keys, not just the requested one. The key ID to
|
||||
look up.
|
||||
|
||||
When excluded, the trailing slash on this endpoint is optional.
|
||||
required: false
|
||||
x-example: "ed25519:abc123"
|
||||
deprecated: true
|
||||
responses:
|
||||
200:
|
||||
description: The homeserver's keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue