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

RFC: GETメソッドを情報取得エンドポイントで許可する #11717

Open
KisaragiEffective opened this issue Aug 14, 2023 · 2 comments
Labels
✨Feature This adds/improves/enhances a feature

Comments

@KisaragiEffective
Copy link
Collaborator

提案内容

情報取得を行うエンドポイントについてGETメソッドを許可することでキャッシュできる可能性を増やすことを提案します。
既存のPOSTメソッドのサポートはこのRFCでは提案しません。

現状

Misskey v13のAPIはほとんどのAPIエンドポイントがPOSTメソッドのみを受け付けます。GETメソッドを使用した場合、HTTPステータスコード405が返却され、データは取得できません。
情報取得を行うエンドポイントもその例外ではありません。しかし、POSTメソッドは冪等ではないため、レスポンスをキャッシュすることが許されません。これはノートやユーザー情報を取得する際に通信を強制するため、クライアントとサーバーのどちらにとっても不都合です。

後方互換性

この変更は後方互換性を持ちます。

将来的な展望

  • 実用性: この機能追加提案のみでは実用性は高くありませんが、将来HEADメソッドのサポートや[Last-Modifiedヘッダー及びIf-Modified-Sinceヘッダーのサポート]が追加された際にサーバーへのトラフィックが大きく削減されることが期待されます。
@KisaragiEffective KisaragiEffective added the ✨Feature This adds/improves/enhances a feature label Aug 14, 2023
@jobbautista9
Copy link

jobbautista9 commented Sep 23, 2023

If DeepL's translation is correct, I wholeheartedly support this feature request of allowing API to be used with GET requests. HTTP POST is a pain as you can see in this thread where we're trying to get Fediseer working with Misskey: https://makai.chaotic.ninja/notes/9jy6bbldpx

I would greatly appreciate the addition of GET as a valid method of using the API.

@kakkokari-gtyih
Copy link
Contributor

kakkokari-gtyih commented Dec 25, 2024

あり

ref: https://misskey.io/notes/a20xg8fvvgwn2v0v, MisskeyIO#834

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature
Projects
Development

No branches or pull requests

3 participants