Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client-api: Add support for authenticated media endpoints #1815

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented May 17, 2024

According to MSC3916.

This does not add the federation endpoint because it seems that its format is not finalized. The MSC uses a single endpoint with a multipart/mixed body, to allow to include metadata with the media in the future. But there are suggestions to have separate endpoints for the metadata and the file content, or to include the metadata in the headers instead.

Copy link
Member

@Kladki Kladki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just two small things.

Comment on lines 6 to 8
//! `/unstable/org.matrix.msc3916/` ([spec])
//!
//! [spec]: https://github.com/matrix-org/matrix-spec-proposals/pull/3916
Copy link
Member

@Kladki Kladki Jun 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we instead do the following on all these modules, like we do with (almost) all other unstable modules?

Suggested change
//! `/unstable/org.matrix.msc3916/` ([spec])
//!
//! [spec]: https://github.com/matrix-org/matrix-spec-proposals/pull/3916
//! `MSC3916` ([MSC])
//!
//! [MSC]: https://github.com/matrix-org/matrix-spec-proposals/pull/3916

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I think my inline code makes more sense compared to stable endpoints where we show the path segment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaning that here I would be for using my inline code and MSC for the link. And try to enforce that in the future.

@zecakeh zecakeh enabled auto-merge (rebase) June 5, 2024 10:38
@zecakeh zecakeh merged commit 73535a7 into main Jun 5, 2024
21 checks passed
@zecakeh zecakeh deleted the zecakeh/msc3916 branch June 5, 2024 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants