Your SlideShare is downloading. ×
HATEOAS 日本語
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

HATEOAS 日本語

979
views

Published on

みなさんこんにちは。私はイギリスから参りました(まいりました)マーク・バーンズと申します。 …

みなさんこんにちは。私はイギリスから参りました(まいりました)マーク・バーンズと申します。
Twitterで@_mark_burns
今回は関西ルビー勉強会にお招き(おまねき)いただき、ありがとうございます。
私の主な二つの趣味は日本語とルビー。ルビーを選んだ理由のひとつは、それが日本で作られて、なんとなく日本庭園ぽい最小限イメージが付いていて、なかなか好きだからです。
今回私の初めての日本語でのレクチャーですので、失敗するかもしれませんが頑張ります。

まずは使いたい術語を紹介いたします。
ウェブシステムについて考える際はクライアントの役目とサーバーの役目は使われているけれども

APIの場合はサーバーは他のAPIのクライエント役目として使われていることもあるので
今日は区別しやすいようにコンシューマーとプロデューサーを使います。

HATEOAS と言うのは。。。
エンジンでありません。エンジンよりサーバーは選択を表示します。



ロイ・フィールディング氏によって

<read>
私にとってもこの文章は非常に分かりにくく、他のネイティブのプログラマーが読んでも分かりにくいと思われます。
しかし、私は実に好奇心旺盛なので解明したかったのです。


サーバーが表示されます。
クライアントが表示の中から選ぶが、そうでない場合はユーザーが好むであろう選択肢が表示されます。

初めてそれをよんだ時に
「あれ」と思いました。

伝達(とは意見や情報を伝えることでしょうか?
既知の情報がなかったら少し変ではないでしょうか?
何も情報がない中、どうしてサービスを使えると思いますか?


例えばTwitter APIを使いたいエンジニアはTwitterの目的を全然理解していないでしょうか?
どうしてこんなに何も分からずにサービスを使うプローグラムを作れますか?
それほどにインテリなシステムを構築する必要がありますか?
AIシステムですか?
だれ や なにが選択を選びますか?

プローグラマーは初めて構築時に選びますか?
ユーザーは選びますか?
両方はちょっと変ではないでしょうか?

プログラミングらしくない、柔軟性のあるシステムなのです。

でも、それから少し考えてください。
そんなシステムは何かAPIブラウザみたいではないですか?
なるほど、似ていると思います。

普通JSONやXML APIとハイパーメディアAPIを比べるとハイパーメディアのはコンシューマーが複雑になります。
ハイーパーメディアはリン

Published in: Technology

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
979
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n\n
  • \n
  • If you go to Starbucks then there&amp;#x2019;s some prior implicit knowledge about interacting with the overall service. The staff can guide you through the transaction. But if you&amp;#x2019;re a tribesman from Papua New Guinea just landed in the UK as part of a documentary, then you could be lacking a lot of prior information that&amp;#x2019;s necessary for a smooth transaction. You&amp;#x2019;re going to need to understand some basic capitalism, what&amp;#x2019;s being traded, why you might want a Hazelnut Latte, and to be honest if you speak English, it&amp;#x2019;s gonna be a lot easier. I think HATEOAS is the member of staff. They can&amp;#x2019;t teach you English. They can&amp;#x2019;t give you free coffee. But if you have some level of implicit understanding of the overall process they can guide you through to the next steps.\n
  • If you go to Starbucks then there&amp;#x2019;s some prior implicit knowledge about interacting with the overall service. The staff can guide you through the transaction. But if you&amp;#x2019;re a tribesman from Papua New Guinea just landed in the UK as part of a documentary, then you could be lacking a lot of prior information that&amp;#x2019;s necessary for a smooth transaction. You&amp;#x2019;re going to need to understand some basic capitalism, what&amp;#x2019;s being traded, why you might want a Hazelnut Latte, and to be honest if you speak English, it&amp;#x2019;s gonna be a lot easier. I think HATEOAS is the member of staff. They can&amp;#x2019;t teach you English. They can&amp;#x2019;t give you free coffee. But if you have some level of implicit understanding of the overall process they can guide you through to the next steps.\n
  • If you go to Starbucks then there&amp;#x2019;s some prior implicit knowledge about interacting with the overall service. The staff can guide you through the transaction. But if you&amp;#x2019;re a tribesman from Papua New Guinea just landed in the UK as part of a documentary, then you could be lacking a lot of prior information that&amp;#x2019;s necessary for a smooth transaction. You&amp;#x2019;re going to need to understand some basic capitalism, what&amp;#x2019;s being traded, why you might want a Hazelnut Latte, and to be honest if you speak English, it&amp;#x2019;s gonna be a lot easier. I think HATEOAS is the member of staff. They can&amp;#x2019;t teach you English. They can&amp;#x2019;t give you free coffee. But if you have some level of implicit understanding of the overall process they can guide you through to the next steps.\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. @_mark_burns HATEOASHypermedia As The Engine Of Application StateThe Hypermedia Constraint
    • 2. @_mark_burns HATEOASHypermedia As The Engine Of Application StateThe Hypermedia Constraint
    • 3. ウェブシステム API役目クライエント サーバー
    • 4. HATEOASHypertextAsTheEngineOfApplicationState
    • 5. HATEOAS
    • 6. HATEOASA REST client needs no prior knowledgeabout how to interact with any particular application or server beyond a generic understanding of hypermedia
    • 7. HATEOASA REST client needs no prior knowledgeabout how to interact with any particular application or server beyond a generic understanding of hypermedia
    • 8. Hypermedia As The Engine Of Application State http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-drivenA REST API should be implied by the user’sentered with no prior manipulation of thoseknowledge beyond the initial representations. TheURI (bookmark) and set of transitions may bestandardized media types that determined (or limited by)are appropriate for the the client’s knowledge ofintended audience (i.e., media types and resourceexpected to be understood by communication mechanisms,any client that might use the both of which may beAPI). From that point on, all improved on-the-fly (e.g.,application state transitions code-on-demand). [Failuremust be driven by client here implies that out-of-bandselection of server-provided information is drivingchoices that are present in the interaction instead ofreceived representations or hypertext.]
    • 9. Hypermedia As The Engine Of Application State http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-drivenA REST API should be implied by the user’sentered with no prior manipulation of thoseknowledge beyond the initial representations. TheURI (bookmark) and set of transitions may bestandardized media types that determined (or limited by)are appropriate for the the client’s knowledge ofintended audience (i.e., media types and resourceexpected to be understood by communication mechanisms,any client that might use the both of which may beAPI). From that point on, all improved on-the-fly (e.g.,application state transitions code-on-demand). [Failuremust be driven by client here implies that out-of-bandselection of server-provided information is drivingchoices that are present in the interaction instead ofreceived representations or hypertext.]
    • 10. no priorknowledgestate transitionsclient selectioninitial bookmarkrepresentations
    • 11. API BROWSING
    • 12. API BROWSING Caching
    • 13. API BROWSING Caching Human metaphors
    • 14. API BROWSING Caching Human metaphors HTTP specification
    • 15. Links ->Collection+JSON Forms ->
    • 16. aphroApplicationProgrammingHumanRESTObjects
    • 17. aphroSimpleLinksFormsJSON

    ×