Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rails API
Search
Mark Morris
October 06, 2015
Programming
2
61
Rails API
Basic introduction to Rails based APIs.
Mark Morris
October 06, 2015
Tweet
Share
Other Decks in Programming
See All in Programming
密集、ドキュメントのコロケーション with AWS Lambda
satoshi256kbyte
0
190
SwiftUIで単方向アーキテクチャを導入して得られた成果
takuyaosawa
0
270
DROBEの生成AI活用事例 with AWS
ippey
0
130
How mixi2 Uses TiDB for SNS Scalability and Performance
kanmo
35
14k
Grafana Loki によるサーバログのコスト削減
mot_techtalk
1
120
第3回 Snowflake 中部ユーザ会- dbt × Snowflake ハンズオン
hoto17296
4
370
もう僕は OpenAPI を書きたくない
sgash708
3
990
Amazon S3 TablesとAmazon S3 Metadataを触ってみた / 20250201-jawsug-tochigi-s3tables-s3metadata
kasacchiful
0
120
Honoのおもしろいミドルウェアをみてみよう
yusukebe
1
200
Pulsar2 を雰囲気で使ってみよう
anoken
0
230
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
120
個人アプリを2年ぶりにアプデしたから褒めて / I just updated my personal app, praise me!
lovee
0
340
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
42
7.2k
How STYLIGHT went responsive
nonsquared
98
5.4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
Raft: Consensus for Rubyists
vanstee
137
6.8k
Visualization
eitanlees
146
15k
Adopting Sorbet at Scale
ufuk
74
9.2k
Making the Leap to Tech Lead
cromwellryan
133
9.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Done Done
chrislema
182
16k
Producing Creativity
orderedlist
PRO
343
39k
Speed Design
sergeychernyshev
26
790
Mobile First: as difficult as doing things right
swwweet
223
9.3k
Transcript
Rails APIs NoCo Web Scale, Oct 6th. @blurredbits
Topics • Introduction • Setup • Versioning • Authentication •
Testing NoCo Web Scale, Oct 6th. @blurredbits
API Application Programming Interface NoCo Web Scale, Oct 6th. @blurredbits
NoCo Web Scale, Oct 6th. @blurredbits
Model View Controller NoCo Web Scale, Oct 6th. @blurredbits
View render JSON instead of HTML NoCo Web Scale, Oct
6th. @blurredbits
JSON JavaScript Object Notation NoCo Web Scale, Oct 6th. @blurredbits
NoCo Web Scale, Oct 6th. @blurredbits
Serializer ActiveModel::Serializer JBuilder NoCo Web Scale, Oct 6th. @blurredbits
Logging config/initializers/filter_parameter_logging.rb NoCo Web Scale, Oct 6th. @blurredbits
Namespacing NoCo Web Scale, Oct 6th. @blurredbits
Inflections config/initializers/inflections.rb NoCo Web Scale, Oct 6th. @blurredbits
Routing config/routes.rb NoCo Web Scale, Oct 6th. @blurredbits
Routing config/routes.rb NoCo Web Scale, Oct 6th. @blurredbits
Authentication app/models/user.rb NoCo Web Scale, Oct 6th. @blurredbits
Authentication app/controllers/API/V1/application_controller.rb NoCo Web Scale, Oct 6th. @blurredbits
Error - No Token app/controllers/API/V1/application_controller.rb NoCo Web Scale, Oct 6th.
@blurredbits
Wrong Password app/controllers/API/V1/application_controller.rb NoCo Web Scale, Oct 6th. @blurredbits
Validation Error app/controllers/API/V1/people_controller.rb NoCo Web Scale, Oct 6th. @blurredbits
RSpec spec/requests/api/people_specs.rb NoCo Web Scale, Oct 6th. @blurredbits
CURL curl http://localhost:3000/api/people/1 NoCo Web Scale, Oct 6th. @blurredbits
Conclusion Error Codes Documentation Rails 5 NoCo Web Scale, Oct
6th. @blurredbits
Resources https://github.com/rails-api/active_model_serializers https://github.com/rails-api/rails-api http://www.raywenderlich.com/85528/user-accounts-ios-ruby- rails-swift NoCo Web Scale, Oct 6th.
@blurredbits