You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.3 KiB
YAML
64 lines
2.3 KiB
YAML
6 years ago
|
# Copyright 2018 New Vector Ltd
|
||
|
#
|
||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
# you may not use this file except in compliance with the License.
|
||
|
# You may obtain a copy of the License at
|
||
|
#
|
||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||
|
#
|
||
|
# Unless required by applicable law or agreed to in writing, software
|
||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
# See the License for the specific language governing permissions and
|
||
|
# limitations under the License.
|
||
|
|
||
|
swagger: '2.0'
|
||
|
info:
|
||
|
title: "Matrix Federation Key Exchange API"
|
||
|
version: "1.0.0"
|
||
|
host: localhost:8448
|
||
|
schemes:
|
||
|
- https
|
||
|
basePath: /_matrix/key/v2
|
||
|
produces:
|
||
|
- application/json
|
||
|
paths:
|
||
|
"/server/{keyId}":
|
||
|
get:
|
||
6 years ago
|
summary: Get the homeserver's public key(s)
|
||
|
description: |-
|
||
6 years ago
|
Gets the homeserver's published signing keys.
|
||
6 years ago
|
The homeserver may have any number of active keys and may have a
|
||
6 years ago
|
number of old keys.
|
||
6 years ago
|
|
||
|
Intermediate notary servers should cache a response for half of its
|
||
|
lifetime to avoid serving a stale response. Originating servers should
|
||
|
avoid returning responses that expire in less than an hour to avoid
|
||
4 years ago
|
repeated requests for a certificate that is about to expire. Requesting
|
||
6 years ago
|
servers should limit how frequently they query for certificates to
|
||
|
avoid flooding a server with requests.
|
||
|
|
||
|
If the server fails to respond to this request, intermediate notary
|
||
|
servers should continue to return the last response they received
|
||
|
from the server so that the signatures of old events can still be
|
||
|
checked.
|
||
6 years ago
|
operationId: getServerKey
|
||
|
parameters:
|
||
|
- in: path
|
||
|
name: keyId
|
||
|
type: string
|
||
6 years ago
|
description: |-
|
||
6 years ago
|
**Deprecated**. Servers should not use this parameter and instead
|
||
6 years ago
|
opt to return all keys, not just the requested one. The key ID to
|
||
6 years ago
|
look up.
|
||
5 years ago
|
|
||
|
When excluded, the trailing slash on this endpoint is optional.
|
||
6 years ago
|
required: false
|
||
6 years ago
|
x-example: "ed25519:abc123"
|
||
6 years ago
|
deprecated: true
|
||
6 years ago
|
responses:
|
||
|
200:
|
||
6 years ago
|
description: The homeserver's keys
|
||
6 years ago
|
schema:
|
||
|
$ref: "definitions/keys.yaml"
|