mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-04-30 16:21:10 +00:00
doc: add server metadata API
This commit is contained in:
parent
5f29b23f9d
commit
76a9e501c5
1 changed files with 22 additions and 0 deletions
|
@ -4,6 +4,28 @@ info:
|
|||
version: 0.0.1
|
||||
|
||||
paths:
|
||||
/_blah/server:
|
||||
get:
|
||||
summary: Get Server metadata
|
||||
responses:
|
||||
200:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
server:
|
||||
type: string
|
||||
example: 'blah/0.0.0'
|
||||
src_url:
|
||||
type: string
|
||||
example: 'https://github.com/Blah-IM/blahrs'
|
||||
capabilities:
|
||||
type: object
|
||||
properties:
|
||||
allow_public_register:
|
||||
type: boolean
|
||||
|
||||
# OAPI does not support WebSocket interface definitions.
|
||||
# See: https://github.com/OAI/OpenAPI-Specification/issues/55#issuecomment-929382279
|
||||
/_blah/ws:
|
||||
|
|
Loading…
Add table
Reference in a new issue