|
|
@ -37,13 +37,14 @@ To cover the use cases above, the following scheme is proposed for Matrix URIs
|
|
|
|
```text
|
|
|
|
```text
|
|
|
|
matrix:[//{authority}/]{type}/{id without sigil}[/{more type/id pairs}][?{query}]
|
|
|
|
matrix:[//{authority}/]{type}/{id without sigil}[/{more type/id pairs}][?{query}]
|
|
|
|
```
|
|
|
|
```
|
|
|
|
with `type` being one of: `user`, `room`, `roomid`, `event` and
|
|
|
|
with `type` defining the resource type (such as `user` or `roomid` - see
|
|
|
|
`group`; and the only `query` defined for now is `action=join`. The Matrix
|
|
|
|
the "Path" section in the proposal) and `query` containing additional hints
|
|
|
|
identifier (or identifiers) can be reconstructed from the URI by taking
|
|
|
|
or request details on the Matrix entity (see "Query" in the proposal).
|
|
|
|
the sigil that corresponds to `type` and appending `id without sigil` to it.
|
|
|
|
The Matrix identifier (or identifiers) can be reconstructed from the URI by
|
|
|
|
The query may alter the kind of request with respect to the Matrix resource;
|
|
|
|
taking the sigil that corresponds to `type` and appending `id without sigil`
|
|
|
|
and Matrix resources can be contained in each other, in which care the
|
|
|
|
to it. To support a hierarchy of Matrix resources, `more type/id pairs` series
|
|
|
|
`more type/id pairs` series is used to reconstruct inner identifiers.
|
|
|
|
is used to reconstruct inner identifiers (as of now, there can be only one
|
|
|
|
|
|
|
|
inner identifier, pointing to an event in a room).
|
|
|
|
|
|
|
|
|
|
|
|
This proposal defines initial mapping of URIs to Matrix identifiers and actions
|
|
|
|
This proposal defines initial mapping of URIs to Matrix identifiers and actions
|
|
|
|
on corresponding resources; the scheme and mapping are subject
|
|
|
|
on corresponding resources; the scheme and mapping are subject
|
|
|
|