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

コンテンツだけを取得するAPIが欲しい #22

Open
hidao80 opened this issue Jan 6, 2020 · 2 comments
Open

コンテンツだけを取得するAPIが欲しい #22

hidao80 opened this issue Jan 6, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@hidao80
Copy link
Member

hidao80 commented Jan 6, 2020

サイト内にまとめを埋め込むために、コンテンツだけを取得できるREST APIが欲しい。

@hidao80 hidao80 added the enhancement New feature or request label Jan 6, 2020
@KEINOS
Copy link
Member

KEINOS commented Jan 8, 2020

サイト内にまとめを埋め込む

おそらくウィジット的な埋め込みタグのことだと思いますが、どんな感じのイメージですか?

コンテンツだけを取得できるREST API

プロキシ的なキャッシュ・サーバーみたいなものでしょうか。Qiita の魚拓 API と似たようなものでよければ用意できます。

ただ、「ウィジット(埋め込みタグ)自体が各々の Mastodon サーバーを叩いて表示する」ものが作れればサーバーレスにできそうな気がします。

@hidao80
Copy link
Member Author

hidao80 commented Jan 8, 2020

@KEINOS まとめ出力ページのbodyタグ直下に含まれているcontent(?)タグの内容とスタイルシート読み込みのためのlinkタグのセットをプレーンテキストで取得できるものです。データコンテナはjsonを考えています。
最高なのはp.htmlで出力されたhtml全てを投げ返して、静的htmlとして取得できればなー、というところです。

魚拓 API の挙動を確認していませんが、近しいものだと思われます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants