matrix-spec/api/identity/ping.yaml

46 lines
1.5 KiB
YAML
Raw Normal View History

2018-02-27 17:26:50 +01:00
# Copyright 2018 Kamax Sàrl
# Copyright 2018 New Vector Ltd
2018-02-27 17:26:50 +01:00
#
# 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 Identity Service Ping API"
2018-02-27 17:26:50 +01:00
version: "1.0.0"
host: localhost:8090
schemes:
- https
basePath: /_matrix/identity
produces:
- application/json
paths:
"/api/v1":
get:
2018-08-31 22:47:06 +02:00
summary: Checks that an identity service is available at this API endpoint.
2018-02-27 17:26:50 +01:00
description: |-
2018-08-31 22:47:06 +02:00
Checks that an identity service is available at this API endpoint.
2018-02-27 17:26:50 +01:00
2018-08-31 22:47:06 +02:00
To discover that an identity service is available at a specific URL,
2018-02-27 17:26:50 +01:00
this endpoint can be queried and will return an empty object.
This is primarly used for auto-discovery and health check purposes
2018-08-31 22:47:06 +02:00
by entities acting as a client for the identity service.
2018-02-27 17:26:50 +01:00
operationId: ping
responses:
200:
2018-08-31 22:47:06 +02:00
description: An identity service is ready to serve requests.
2018-02-27 17:26:50 +01:00
examples:
application/json: {}
schema:
type: object