5章REST
ネットワークベースのAPIの中で、最も人気を集めているのがREST(Representational State Transfer)である†1。RESTというアーキテクチャーのスタイル†2は、2000年にRoy Fieldingによる博士論文「Architectural Styles and the Design of Network-Based Software Architectures」(https://roy.gbiv.com/pubs/dissertation/fielding_dissertation.pdf)で定義された。インターネット規模のネットワークベースのアプリケーションを作成するためのアプローチの1つとして、RESTが提唱された。
[†1] Postmanの「2023 State of the API Report」(https://voyager.postman.com/pdf/2023-state-of-the-api-report-postman.pdf)では、最も人気のあるAPI技術としてRESTが挙げられている。
[†2] Roy Fieldingは「Architectural Styles and the Design of Network-Based Software Architectures」(https://roy.gbiv.com/pubs/dissertation/fielding_dissertation.pdf)の中で、アーキテクチャーのスタイルを「アーキテクチャーの要素が持つ役割や機能への制約と、各要素間に許容される関係とをまとめたもの」と定義している。
この章ではREST APIについて、起源や実装、テスト、セキュリティ、文書化、トレードオフを紹介する。DRF(Django ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access