You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proposals/2320-identity-versions.md
+26-14Lines changed: 26 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,15 @@ implemented by the identity server it's using (if there is one).
12
12
13
13
## Proposal
14
14
15
-
This proposal extends the [`/_matrix/identity/v2`](https://matrix.org/docs/spec/identity_service/r0.2.1#get-matrix-identity-api-v1)
16
-
endpoint's response by adding information about the supported versions of the
17
-
identity server API and unstable features implemented by the server
18
-
to it. Because the current response for this endpoint is an empty object
19
-
(which is discarded by the client), the new response would look like:
15
+
This proposal adds two endpoints to the identity server API.
16
+
17
+
### `GET /_matrix/identity/versions`
18
+
19
+
This endpoint serves information about the versions of the identity server API
20
+
this identity server supports. Its response uses the following format:
20
21
21
22
```json
22
23
{
23
-
"unstable_features": {
24
-
"casefold_email_addresses": true
25
-
},
26
24
"versions": [
27
25
"r0.1.0",
28
26
"r0.2.0",
@@ -31,12 +29,26 @@ to it. Because the current response for this endpoint is an empty object
31
29
}
32
30
```
33
31
34
-
This response would follow the format of the [`/_matrix/client/versions`](https://matrix.org/docs/spec/client_server/r0.5.0#get-matrix-client-versions) endpoint.
32
+
### `GET /_matrix/identity/unstable_features`
33
+
34
+
This endpoint serves information about the unstable features, i.e. features
35
+
specified in a MSC or an unstable version of the Matrix specification but not in
36
+
a stable one, supported by the server. Its response uses the following format:
37
+
38
+
```json
39
+
{
40
+
"unstable_features": {
41
+
"org.matrix.casefold_email_addresses": true
42
+
}
43
+
}
44
+
```
35
45
36
46
## Alternative solutions
37
47
38
-
An alternative solution to this issue would be to add a
39
-
`/_matrix/identity/versions` endpoint to the identity server API.
40
-
This would however add more complexity by adding a new endpoint whereas there's
41
-
already an existing endpoint which seems relevant for handling this kind of
42
-
information.
48
+
Another solution which was considered was using the status check endpoint ([`GET
0 commit comments