Merge pull request #3329 from lukaslihotzki/missing-tags
OpenAPI: improve tags
This commit is contained in:
commit
5749325fc3
9 changed files with 60 additions and 12 deletions
|
@ -87,7 +87,7 @@ paths:
|
||||||
associated the third party identifier with the user.
|
associated the third party identifier with the user.
|
||||||
required: ['medium', 'address', 'validated_at', 'added_at']
|
required: ['medium', 'address', 'validated_at', 'added_at']
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
post:
|
post:
|
||||||
summary: Adds contact information to the user's account.
|
summary: Adds contact information to the user's account.
|
||||||
description: |-
|
description: |-
|
||||||
|
@ -179,7 +179,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/error.yaml"
|
"$ref": "definitions/errors/error.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
"/account/3pid/add":
|
"/account/3pid/add":
|
||||||
post:
|
post:
|
||||||
summary: Adds contact information to the user's account.
|
summary: Adds contact information to the user's account.
|
||||||
|
@ -235,7 +235,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
"/account/3pid/bind":
|
"/account/3pid/bind":
|
||||||
post:
|
post:
|
||||||
summary: Binds a 3PID to the user's account through an Identity Service.
|
summary: Binds a 3PID to the user's account through an Identity Service.
|
||||||
|
@ -289,7 +289,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
"/account/3pid/delete":
|
"/account/3pid/delete":
|
||||||
post:
|
post:
|
||||||
summary: Deletes a third party identifier from the user's account
|
summary: Deletes a third party identifier from the user's account
|
||||||
|
@ -354,7 +354,7 @@ paths:
|
||||||
required:
|
required:
|
||||||
- id_server_unbind_result
|
- id_server_unbind_result
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
"/account/3pid/unbind":
|
"/account/3pid/unbind":
|
||||||
post:
|
post:
|
||||||
summary: Removes a user's third party identifier from an identity server.
|
summary: Removes a user's third party identifier from an identity server.
|
||||||
|
@ -418,7 +418,7 @@ paths:
|
||||||
required:
|
required:
|
||||||
- id_server_unbind_result
|
- id_server_unbind_result
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
"/account/3pid/email/requestToken":
|
"/account/3pid/email/requestToken":
|
||||||
post:
|
post:
|
||||||
summary: Begins the validation process for an email address for association with the user's account.
|
summary: Begins the validation process for an email address for association with the user's account.
|
||||||
|
@ -470,6 +470,8 @@ paths:
|
||||||
"errcode": "M_THREEPID_IN_USE",
|
"errcode": "M_THREEPID_IN_USE",
|
||||||
"error": "Third party identifier already in use"
|
"error": "Third party identifier already in use"
|
||||||
}
|
}
|
||||||
|
tags:
|
||||||
|
- Account management
|
||||||
"/account/3pid/msisdn/requestToken":
|
"/account/3pid/msisdn/requestToken":
|
||||||
post:
|
post:
|
||||||
summary: Begins the validation process for a phone number for association with the user's account.
|
summary: Begins the validation process for a phone number for association with the user's account.
|
||||||
|
@ -518,3 +520,5 @@ paths:
|
||||||
"errcode": "M_THREEPID_IN_USE",
|
"errcode": "M_THREEPID_IN_USE",
|
||||||
"error": "Third party identifier already in use"
|
"error": "Third party identifier already in use"
|
||||||
}
|
}
|
||||||
|
tags:
|
||||||
|
- Account management
|
||||||
|
|
|
@ -136,6 +136,8 @@ paths:
|
||||||
"errcode": "M_FORBIDDEN",
|
"errcode": "M_FORBIDDEN",
|
||||||
"error": "Key ID in use"
|
"error": "Key ID in use"
|
||||||
}
|
}
|
||||||
|
tags:
|
||||||
|
- End-to-end encryption
|
||||||
"/keys/signatures/upload":
|
"/keys/signatures/upload":
|
||||||
post:
|
post:
|
||||||
summary: Upload cross-signing signatures.
|
summary: Upload cross-signing signatures.
|
||||||
|
@ -230,3 +232,5 @@ paths:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
tags:
|
||||||
|
- End-to-end encryption
|
||||||
|
|
|
@ -487,6 +487,8 @@ paths:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
|
tags:
|
||||||
|
- End-to-end encryption
|
||||||
delete:
|
delete:
|
||||||
summary: Delete a key from the backup.
|
summary: Delete a key from the backup.
|
||||||
description: |-
|
description: |-
|
||||||
|
@ -547,6 +549,8 @@ paths:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
|
tags:
|
||||||
|
- End-to-end encryption
|
||||||
"/room_keys/keys/{roomId}":
|
"/room_keys/keys/{roomId}":
|
||||||
put:
|
put:
|
||||||
summary: Store several keys in the backup for a given room.
|
summary: Store several keys in the backup for a given room.
|
||||||
|
@ -666,6 +670,8 @@ paths:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
|
tags:
|
||||||
|
- End-to-end encryption
|
||||||
delete:
|
delete:
|
||||||
summary: Delete the keys from the backup for a given room.
|
summary: Delete the keys from the backup for a given room.
|
||||||
description: |-
|
description: |-
|
||||||
|
@ -720,6 +726,8 @@ paths:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
|
tags:
|
||||||
|
- End-to-end encryption
|
||||||
"/room_keys/keys":
|
"/room_keys/keys":
|
||||||
put:
|
put:
|
||||||
summary: Store several keys in the backup.
|
summary: Store several keys in the backup.
|
||||||
|
@ -875,6 +883,8 @@ paths:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
|
tags:
|
||||||
|
- End-to-end encryption
|
||||||
delete:
|
delete:
|
||||||
summary: Delete the keys from the backup.
|
summary: Delete the keys from the backup.
|
||||||
description: |-
|
description: |-
|
||||||
|
@ -923,3 +933,5 @@ paths:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
|
tags:
|
||||||
|
- End-to-end encryption
|
||||||
|
|
|
@ -61,6 +61,8 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/error.yaml"
|
"$ref": "definitions/errors/error.yaml"
|
||||||
|
tags:
|
||||||
|
- Room discovery
|
||||||
put:
|
put:
|
||||||
summary: Sets the visibility of a room in the room directory
|
summary: Sets the visibility of a room in the room directory
|
||||||
description: |-
|
description: |-
|
||||||
|
@ -111,6 +113,8 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/error.yaml"
|
"$ref": "definitions/errors/error.yaml"
|
||||||
|
tags:
|
||||||
|
- Room discovery
|
||||||
"/publicRooms":
|
"/publicRooms":
|
||||||
get:
|
get:
|
||||||
summary: Lists the public rooms on the server.
|
summary: Lists the public rooms on the server.
|
||||||
|
|
|
@ -214,7 +214,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
"/register/email/requestToken":
|
"/register/email/requestToken":
|
||||||
post:
|
post:
|
||||||
summary: Begins the validation process for an email to be used during registration.
|
summary: Begins the validation process for an email to be used during registration.
|
||||||
|
@ -265,6 +265,8 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/error.yaml"
|
"$ref": "definitions/errors/error.yaml"
|
||||||
|
tags:
|
||||||
|
- Account management
|
||||||
"/register/msisdn/requestToken":
|
"/register/msisdn/requestToken":
|
||||||
post:
|
post:
|
||||||
summary: Requests a validation token be sent to the given phone number for the purpose of registering an account
|
summary: Requests a validation token be sent to the given phone number for the purpose of registering an account
|
||||||
|
@ -315,6 +317,8 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/error.yaml"
|
"$ref": "definitions/errors/error.yaml"
|
||||||
|
tags:
|
||||||
|
- Account management
|
||||||
"/account/password":
|
"/account/password":
|
||||||
post:
|
post:
|
||||||
summary: "Changes a user's password."
|
summary: "Changes a user's password."
|
||||||
|
@ -378,7 +382,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
"/account/password/email/requestToken":
|
"/account/password/email/requestToken":
|
||||||
post:
|
post:
|
||||||
summary: Requests a validation token be sent to the given email address for the purpose of resetting a user's password
|
summary: Requests a validation token be sent to the given email address for the purpose of resetting a user's password
|
||||||
|
@ -434,6 +438,8 @@ paths:
|
||||||
"errcode": "M_THREEPID_NOT_FOUND",
|
"errcode": "M_THREEPID_NOT_FOUND",
|
||||||
"error": "Email not found"
|
"error": "Email not found"
|
||||||
}
|
}
|
||||||
|
tags:
|
||||||
|
- Account management
|
||||||
"/account/password/msisdn/requestToken":
|
"/account/password/msisdn/requestToken":
|
||||||
post:
|
post:
|
||||||
summary: Requests a validation token be sent to the given phone number for the purpose of resetting a user's password.
|
summary: Requests a validation token be sent to the given phone number for the purpose of resetting a user's password.
|
||||||
|
@ -489,6 +495,8 @@ paths:
|
||||||
"errcode": "M_THREEPID_NOT_FOUND",
|
"errcode": "M_THREEPID_NOT_FOUND",
|
||||||
"error": "Phone number not found"
|
"error": "Phone number not found"
|
||||||
}
|
}
|
||||||
|
tags:
|
||||||
|
- Account management
|
||||||
"/account/deactivate":
|
"/account/deactivate":
|
||||||
post:
|
post:
|
||||||
summary: "Deactivate a user's account."
|
summary: "Deactivate a user's account."
|
||||||
|
@ -565,7 +573,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
"/register/available":
|
"/register/available":
|
||||||
get:
|
get:
|
||||||
summary: Checks to see if a username is available on the server.
|
summary: Checks to see if a username is available on the server.
|
||||||
|
@ -627,4 +635,4 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Account management
|
||||||
|
|
|
@ -46,6 +46,8 @@ paths:
|
||||||
headers:
|
headers:
|
||||||
Location:
|
Location:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
tags:
|
||||||
|
- Session management
|
||||||
"/login/sso/redirect/{idpId}":
|
"/login/sso/redirect/{idpId}":
|
||||||
get:
|
get:
|
||||||
summary: Redirect the user's browser to the SSO interface for an IdP.
|
summary: Redirect the user's browser to the SSO interface for an IdP.
|
||||||
|
@ -83,3 +85,5 @@ paths:
|
||||||
The IdP ID was not recognized by the server. The server is encouraged
|
The IdP ID was not recognized by the server. The server is encouraged
|
||||||
to provide a user-friendly page explaining the error given the user
|
to provide a user-friendly page explaining the error given the user
|
||||||
will be navigated to it.
|
will be navigated to it.
|
||||||
|
tags:
|
||||||
|
- Session management
|
||||||
|
|
|
@ -42,6 +42,8 @@ paths:
|
||||||
description: The protocols supported by the homeserver.
|
description: The protocols supported by the homeserver.
|
||||||
schema:
|
schema:
|
||||||
$ref: ../application-service/definitions/protocol_metadata.yaml
|
$ref: ../application-service/definitions/protocol_metadata.yaml
|
||||||
|
tags:
|
||||||
|
- Third Party Lookup
|
||||||
"/thirdparty/protocol/{protocol}":
|
"/thirdparty/protocol/{protocol}":
|
||||||
get:
|
get:
|
||||||
summary: Retrieve metadata about a specific protocol that the homeserver supports.
|
summary: Retrieve metadata about a specific protocol that the homeserver supports.
|
||||||
|
@ -71,6 +73,8 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/errors/error.yaml
|
$ref: definitions/errors/error.yaml
|
||||||
|
tags:
|
||||||
|
- Third Party Lookup
|
||||||
"/thirdparty/location/{protocol}":
|
"/thirdparty/location/{protocol}":
|
||||||
get:
|
get:
|
||||||
summary: Retrieve Matrix-side portals rooms leading to a third party location.
|
summary: Retrieve Matrix-side portals rooms leading to a third party location.
|
||||||
|
@ -112,6 +116,8 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/errors/error.yaml
|
$ref: definitions/errors/error.yaml
|
||||||
|
tags:
|
||||||
|
- Third Party Lookup
|
||||||
"/thirdparty/user/{protocol}":
|
"/thirdparty/user/{protocol}":
|
||||||
get:
|
get:
|
||||||
summary: Retrieve the Matrix User ID of a corresponding third party user.
|
summary: Retrieve the Matrix User ID of a corresponding third party user.
|
||||||
|
@ -147,6 +153,8 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/errors/error.yaml
|
$ref: definitions/errors/error.yaml
|
||||||
|
tags:
|
||||||
|
- Third Party Lookup
|
||||||
"/thirdparty/location":
|
"/thirdparty/location":
|
||||||
get:
|
get:
|
||||||
summary: Reverse-lookup third party locations given a Matrix room alias.
|
summary: Reverse-lookup third party locations given a Matrix room alias.
|
||||||
|
@ -177,6 +185,8 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/errors/error.yaml
|
$ref: definitions/errors/error.yaml
|
||||||
|
tags:
|
||||||
|
- Third Party Lookup
|
||||||
"/thirdparty/user":
|
"/thirdparty/user":
|
||||||
get:
|
get:
|
||||||
summary: Reverse-lookup third party users given a Matrix User ID.
|
summary: Reverse-lookup third party users given a Matrix User ID.
|
||||||
|
@ -206,3 +216,5 @@ paths:
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/errors/error.yaml
|
$ref: definitions/errors/error.yaml
|
||||||
|
tags:
|
||||||
|
- Third Party Lookup
|
||||||
|
|
|
@ -107,4 +107,4 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User directory
|
||||||
|
|
|
@ -89,4 +89,4 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- Session management
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue