fedのサーバー間通信でリソースのフェッチができたっぽい
最も基本的な動作
1. サーバーa(localhost:3000)上にリソースを作成
2. サーバーb(localhost:3001)からサーバーaのリソースをフェッチしてクライアントに返すPOST http://localhost:3000/notes
[body]
{"text": "abc"}
[response]
{
"id": "8dc70f2d-8711-4727-9c75-2cfed0e4f07a",
"text": "abc"
}
GET http://localhost:3000/notes/8dc70f2d-8711-4727-9c75-2cfed0e4f07a
[response]
{
"id": "8dc70f2d-8711-4727-9c75-2cfed0e4f07a",
"text": "abc"
}
GET http://localhost:3001/notes/8dc70f2d-8711-4727-9c75-2cfed0e4f07a@a
[response]
{
"id": "8dc70f2d-8711-4727-9c75-2cfed0e4f07a",
"text": "abc"
}
Conversation
Notices
-
Embed this notice
まりはち(ほに) (mrhc@honi.club)'s status on Saturday, 12-Nov-2022 16:27:40 JST まりはち(ほに) - しなはちさん:koke_burger: likes this.