Submit Search
Upload
RailsスタイルからRESTを学ぼう よちがや.rb
•
4 likes
•
1,610 views
T
Toru Kawamura
Follow
よちよち.rb & Sendagaya.rb 合同開催「よちがや.rb」 https://yochiyochirb.doorkeeper.jp/events/83343
Read less
Read more
Technology
Report
Share
Report
Share
1 of 63
Download now
Download to read offline
Recommended
Rest And Rails
Rest And Rails
Kaushik Jha
Rails 2.0 Presentation
Rails 2.0 Presentation
Scott Chacon
REST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practice
hamnis
20120121 rbc rails_routing
20120121 rbc rails_routing
Takeshi AKIMA
Rest API
Rest API
Rohana K Amarakoon
REST Introduction (PHP London)
REST Introduction (PHP London)
Paul James
Learning to code for startup mvp session 3
Learning to code for startup mvp session 3
Henry S
WebCamp: Developer Day: Архитектура Web-приложений: обзор современных решений...
WebCamp: Developer Day: Архитектура Web-приложений: обзор современных решений...
GeeksLab Odessa
Recommended
Rest And Rails
Rest And Rails
Kaushik Jha
Rails 2.0 Presentation
Rails 2.0 Presentation
Scott Chacon
REST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practice
hamnis
20120121 rbc rails_routing
20120121 rbc rails_routing
Takeshi AKIMA
Rest API
Rest API
Rohana K Amarakoon
REST Introduction (PHP London)
REST Introduction (PHP London)
Paul James
Learning to code for startup mvp session 3
Learning to code for startup mvp session 3
Henry S
WebCamp: Developer Day: Архитектура Web-приложений: обзор современных решений...
WebCamp: Developer Day: Архитектура Web-приложений: обзор современных решений...
GeeksLab Odessa
Deploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
Tasawr Interactive
Java colombo-deep-dive-into-jax-rs
Java colombo-deep-dive-into-jax-rs
Sagara Gunathunga
Resource Routing in ExpressionEngine
Resource Routing in ExpressionEngine
MichaelRog
Ajug - The Spring Update
Ajug - The Spring Update
Gunnar Hillert
REST
REST
Vijay Shukla
Spring Boot and REST API
Spring Boot and REST API
07.pallav
atomPub, ruby y la api de 11870
atomPub, ruby y la api de 11870
David Calavera
Go Web Development
Go Web Development
Cheng-Yi Yu
RESTful SOA - 中科院暑期讲座
RESTful SOA - 中科院暑期讲座
Li Yi
Restful webservices
Restful webservices
Kong King
The Spring Update
The Spring Update
Gunnar Hillert
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
scalaconfjp
Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014
Ngoc Dao
Using Sinatra to Build REST APIs in Ruby
Using Sinatra to Build REST APIs in Ruby
LaunchAny
Developing RESTful WebServices using Jersey
Developing RESTful WebServices using Jersey
b_kathir
An introduction to Struts 2 and RESTful applications
An introduction to Struts 2 and RESTful applications
mrdon
RSS Like A Ninja
RSS Like A Ninja
Jason Austin
Adriano Di Luzio - Davvy - PyconSEI Talk
Adriano Di Luzio - Davvy - PyconSEI Talk
aldur999
Rails 4.0
Rails 4.0
Robert Gogolok
Naked Performance With Clojure
Naked Performance With Clojure
Metosin Oy
真のREST
真のREST
Toru Kawamura
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the future
Toru Kawamura
More Related Content
Similar to RailsスタイルからRESTを学ぼう よちがや.rb
Deploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
Tasawr Interactive
Java colombo-deep-dive-into-jax-rs
Java colombo-deep-dive-into-jax-rs
Sagara Gunathunga
Resource Routing in ExpressionEngine
Resource Routing in ExpressionEngine
MichaelRog
Ajug - The Spring Update
Ajug - The Spring Update
Gunnar Hillert
REST
REST
Vijay Shukla
Spring Boot and REST API
Spring Boot and REST API
07.pallav
atomPub, ruby y la api de 11870
atomPub, ruby y la api de 11870
David Calavera
Go Web Development
Go Web Development
Cheng-Yi Yu
RESTful SOA - 中科院暑期讲座
RESTful SOA - 中科院暑期讲座
Li Yi
Restful webservices
Restful webservices
Kong King
The Spring Update
The Spring Update
Gunnar Hillert
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
scalaconfjp
Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014
Ngoc Dao
Using Sinatra to Build REST APIs in Ruby
Using Sinatra to Build REST APIs in Ruby
LaunchAny
Developing RESTful WebServices using Jersey
Developing RESTful WebServices using Jersey
b_kathir
An introduction to Struts 2 and RESTful applications
An introduction to Struts 2 and RESTful applications
mrdon
RSS Like A Ninja
RSS Like A Ninja
Jason Austin
Adriano Di Luzio - Davvy - PyconSEI Talk
Adriano Di Luzio - Davvy - PyconSEI Talk
aldur999
Rails 4.0
Rails 4.0
Robert Gogolok
Naked Performance With Clojure
Naked Performance With Clojure
Metosin Oy
Similar to RailsスタイルからRESTを学ぼう よちがや.rb
(20)
Deploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
Java colombo-deep-dive-into-jax-rs
Java colombo-deep-dive-into-jax-rs
Resource Routing in ExpressionEngine
Resource Routing in ExpressionEngine
Ajug - The Spring Update
Ajug - The Spring Update
REST
REST
Spring Boot and REST API
Spring Boot and REST API
atomPub, ruby y la api de 11870
atomPub, ruby y la api de 11870
Go Web Development
Go Web Development
RESTful SOA - 中科院暑期讲座
RESTful SOA - 中科院暑期讲座
Restful webservices
Restful webservices
The Spring Update
The Spring Update
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
Xitrum Web Framework Live Coding Demos / Xitrum Web Framework ライブコーディング
Xitrum @ Scala Matsuri Tokyo 2014
Xitrum @ Scala Matsuri Tokyo 2014
Using Sinatra to Build REST APIs in Ruby
Using Sinatra to Build REST APIs in Ruby
Developing RESTful WebServices using Jersey
Developing RESTful WebServices using Jersey
An introduction to Struts 2 and RESTful applications
An introduction to Struts 2 and RESTful applications
RSS Like A Ninja
RSS Like A Ninja
Adriano Di Luzio - Davvy - PyconSEI Talk
Adriano Di Luzio - Davvy - PyconSEI Talk
Rails 4.0
Rails 4.0
Naked Performance With Clojure
Naked Performance With Clojure
More from Toru Kawamura
真のREST
真のREST
Toru Kawamura
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the future
Toru Kawamura
RESTful #とは RailsスタイルからRESTを学ぼう
RESTful #とは RailsスタイルからRESTを学ぼう
Toru Kawamura
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails (増補日本語版)
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails (増補日本語版)
Toru Kawamura
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails
Toru Kawamura
RESTful Meetup vol.3 Introduction
RESTful Meetup vol.3 Introduction
Toru Kawamura
Rails Gems realize RESTful modeling patterns
Rails Gems realize RESTful modeling patterns
Toru Kawamura
リソースモデリングパターンの提案 #sendagayarb
リソースモデリングパターンの提案 #sendagayarb
Toru Kawamura
routes.rb をもう一度考えてみた #shibuyarb
routes.rb をもう一度考えてみた #shibuyarb
Toru Kawamura
返信と@ツイートの仕様変更と提案 #twtr_hack
返信と@ツイートの仕様変更と提案 #twtr_hack
Toru Kawamura
RESTとRailsスタイル
RESTとRailsスタイル
Toru Kawamura
OAuth Echo の Rails Gem
OAuth Echo の Rails Gem
Toru Kawamura
More from Toru Kawamura
(12)
真のREST
真のREST
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the future
RESTful #とは RailsスタイルからRESTを学ぼう
RESTful #とは RailsスタイルからRESTを学ぼう
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails (増補日本語版)
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails (増補日本語版)
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails
Hypermedia: The Missing Element to Building Adaptable Web APIs in Rails
RESTful Meetup vol.3 Introduction
RESTful Meetup vol.3 Introduction
Rails Gems realize RESTful modeling patterns
Rails Gems realize RESTful modeling patterns
リソースモデリングパターンの提案 #sendagayarb
リソースモデリングパターンの提案 #sendagayarb
routes.rb をもう一度考えてみた #shibuyarb
routes.rb をもう一度考えてみた #shibuyarb
返信と@ツイートの仕様変更と提案 #twtr_hack
返信と@ツイートの仕様変更と提案 #twtr_hack
RESTとRailsスタイル
RESTとRailsスタイル
OAuth Echo の Rails Gem
OAuth Echo の Rails Gem
Recently uploaded
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
charlottematthew16
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
RankYa
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Florian Wilhelm
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Scott Keck-Warren
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
hariprasad279825
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Wonjun Hwang
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
Zilliz
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Patryk Bandurski
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
NavinnSomaal
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Manik S Magar
Recently uploaded
(20)
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
RailsスタイルからRESTを学ぼう よちがや.rb
1.
Rails REST 2019.01.07 .rb
& Sendagaya.rb .rb
2.
@tkawa • (Toru Kawamura) •
REST (RESTafarian) • Sendagaya.rb (w/ @fukajun) • “RESTful Web APIs” (2016)
3.
• REST • Web
URL, HTTP • Rails • REST •
4.
5.
– Rails 2
2.2 Rails “REST” REpresentational State Transfer REST Web 1
6.
Wikipedia … REST 2 •
REST Web • (RPC) XML + HTTP SOAP REST 2 https://ja.wikipedia.org/wiki/Representational_State_Transfer
7.
REST • Web ‣ Web Web
Web API REST Web – Web 3 3.2
8.
REST • Web (URL,
HTTP, HTML) • URL • ( ) • curl HTTP • • 4 (CRUD) Web REST …
9.
REST [ ] REST
10.
REST [ ] URL HTTP HTML
JavaScriptWeb
11.
REST [ ] HTTP GraphQL
/ JSON URL?
12.
REST Web • URL,
HTTP, HTML
13.
REST [ ] URL HTTP HTTP
URL
14.
15.
Web 1. 2. 1. Web 2. (HTML,
CSS, JavaScript, JPEG,...)
16.
17.
18.
• URL • •
19.
Web 1. 2. 1. Web 2. (HTML,
CSS, JavaScript, JPEG,...) URL,
20.
Web 1. 2.
21.
URL • Web • • https://twitter.com/tkawa https://yochiyochirb.doorkeeper.jp/events/83343
22.
.rb wiki
23.
.rb wiki GitHub yochiyochirb meetups Wiki New Page
24.
.rb wiki https://github.com/yochiyochirb/meetups/wiki/_new
25.
POST https://github.com/yochiyochirb/meetups/wiki
26.
GET POST PUT
DELETE 4 !! ※Create, Read, Update, Delete CRUD
27.
GET https://github.com/yochiyochirb/meetups/wiki POST https://github.com/yochiyochirb/meetups/wiki PUT
https://github.com/yochiyochirb/meetups/wiki DELETE https://github.com/yochiyochirb/meetups/wiki URL
28.
GET POST PUT
DELETE
29.
GET http://example.com/users/show/123 POST http://example.com/users/create
30.
GET http://example.com/users/show/123 POST http://example.com/users/create POST
http://example.com/users/show/123 GET http://example.com/users/create ❌
31.
GET http://example.com/users/show/123 POST http://example.com/users/create ⭕
GET http://example.com/users/123 ⭕ POST http://example.com/users
32.
• Web • • 3
33.
• 200 : •
200 OK • 300 : URL • 301 Moved Permanently • 400 : • 404 Not Found • 500 : • 500 Internal Server Error
34.
REST Web • URL,
HTTP, HTML • •
35.
36.
Rails • REST • •
Rails
37.
GET http://example.com/users/show/123 POST http://example.com/users/create GET
http://example.com/users/123 POST http://example.com/users
38.
GET POST PUT
DELETE /user
39.
http://d.hatena.ne.jp/tkawa/20140923 http://d.hatena.ne.jp/tkawa/20140923/p1 http://baseball.example.jp/leagues http://baseball.example.jp/leagues/central http://railsapp.example.com/users http://railsapp.example.com/users/123
40.
http://d.hatena.ne.jp/tkawa/20140923 http://d.hatena.ne.jp/tkawa/20140923/p1 http://baseball.example.jp/leagues http://baseball.example.jp/leagues/central http://railsapp.example.com/users http://railsapp.example.com/users/123 / / ,,
41.
GET POST PUT
DELETE /users /users/123
42.
GET POST PUT
DELETE /users index create - - /users/123 show - update destroy GET /users/new → new ( ) GET /users/123/edit → edit ( ) UsersController
43.
“resources” • • users,
groups, … resources :users resources :groups
44.
GET POST PUT
DELETE /users index create - - /users/123 show - update destroy / /
45.
GET POST PUT
DELETE /groups index create - - /groups/1 show - update destroy Q.
46.
membership GET POST PUT
DELETE /memberships index create - - /memberships/1 show - update destroy resources :memberships
47.
REST
48.
REST • Web ‣ REST •
Web ‣ Web
49.
REST Web Web REST
50.
https://ja.wikipedia.org/wiki/
51.
Rails MVC •
Rails app/ models views controllers 3 Rails MVC (model-view-controller) Model-View-Controller (MVC) – Rails 1 1.3.3
52.
• (Granularity) • ( ) –
Web 1 3.2
53.
REST Roy Fielding •
1995 Apache HTTP Server Apache HTTP Server • 1996 5 HTTP/1.0 (RFC 1945) • 1997 1 HTTP/1.1 (RFC 2068) • 2000 “Architectural Styles and the Design of Network-based Software Architectures” Web REST
54.
REST • • • • • [
] • ‣ ‣ ‣ ‣
55.
REST(Web) • ‣ Web • ‣ Web • ‣ • ‣ Web
56.
• REST • Web
URL, HTTP, HTML • 3 • URL • • • Rails http://rest-pattern.hatenablog.com/ http://d.hatena.ne.jp/tkawa/searchdiary?word=*[rest]
57.
Q • Rails PUT
PATCH • Web Web API
58.
GET POST PUT PATCH DELETE ❌
59.
Web Web API
60.
REST [ ] URL HTTP JSONWeb
API
61.
REST [ ] HTTP GraphQL
/ JSON GraphQL URL? REST REST
62.
Web API REST
• ‣ Web • ‣ Web • ‣ • ‣ Web
63.
… •
Download now