Skip to Content
Rails 4 in Action
book

Rails 4 in Action

by Yehuda Katz, Rebecca Skinner, Stephen Klabnik, Ryan Bigg
August 2015
Intermediate to advanced content levelIntermediate to advanced
576 pages
18h 13m
English
Manning Publications
Content preview from Rails 4 in Action

Chapter 14. Designing an API

This chapter covers

  • Creating JSON responses using ActiveModel::Serializers
  • Creating an API namespace
  • Request testing and using HTTParty for manually interacting with your API
  • Responding appropriately to common API errors

It’s becoming more and more apparent that if you have an application of any significance, you’re going to need an application programming interface, or API. Some applications are only an API. ProgrammableWeb (www.programmableweb.com/), a blog that keeps track of the API space, has a directory of APIs, and at the time of writing, there are 13,628 being tracked. By the time you read this, there could be over 15,000 listed. That’s a lot of APIs!

In this chapter, we’ll compare a few different ...

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.
Start your free trial

You might also like

Rails Crash Course

Rails Crash Course

Anthony Lewis

Publisher Resources

ISBN: 9781617291098Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link