|
|
|
# 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 Client-Server Server Discovery API"
|
|
|
|
version: "1.0.0"
|
|
|
|
host: localhost:8008
|
|
|
|
schemes:
|
|
|
|
- https
|
|
|
|
basePath: /.well-known
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
paths:
|
|
|
|
"/matrix/client":
|
|
|
|
get:
|
|
|
|
summary: Gets Matrix server discovery information about the domain.
|
|
|
|
description: |-
|
|
|
|
Gets discovery information about the domain. The file may include
|
|
|
|
additional keys, which MUST follow the Java package naming convention,
|
|
|
|
e.g. ``com.example.myapp.property``. This ensures property names are
|
|
|
|
suitably namespaced for each application and reduces the risk of
|
|
|
|
clashes.
|
|
|
|
|
|
|
|
Note that this endpoint is not necessarily handled by the homeserver,
|
|
|
|
but by another webserver, to be used for discovering the homeserver URL.
|
|
|
|
operationId: getWellknown
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Server discovery information.
|
|
|
|
schema:
|
|
|
|
"$ref": "definitions/wellknown/full.yaml"
|
|
|
|
404:
|
|
|
|
description: No server discovery information available.
|
|
|
|
tags:
|
|
|
|
- Server administration
|