Build APIs You Won't… by Phil Sturgeon [Leanpub PDF/iPad/Kindle]
Build APIs You Won't Hate
Build APIs You Won't Hate
$26.99
Minimum
$29.99
Suggested
Build APIs You Won't Hate

This book is 100% complete

Completed on 2016-03-30

About the Book

API development is becoming increasingly common for server-side developers thanks to the rise of front-end JavaScript frameworks, iPhone applications, and API-centric architectures. It might seem like grabbing stuff from a data source and shoving it out as JSON would be easy, but surviving changes in business logic, database schema updates, new features, or deprecated endpoints can be a nightmare.

After finding many of the existing resources for API development to be lacking, Phil learned a lot of things the hard way through years of trial and error. This book aims to condense that experience, taking examples and explanations further than the trivial apples and pears nonsense tutorials often provide.

Phil worked primarily as an API developer for the last three years. One horror was managing an API built in FuelPHP by a freelancer at the million dollar startup he joined. It was utilizing a then deprecated ORM which had been hacked to death by the previous developer, so took the time to delete that mess and build the next version in Laravel, leveraging it's simple routing, database migrations, schema, seeding, etc. When the following major version of the API was built no rewrite was required, and both managed to live side-by-side on the same "API" servers.

By passing on some best practices and general good advice you can hit the ground running with API development, combined with some horror stories and how they were overcome/avoided/averted. This book will discuss the theory of designing and building APIs in any language or framework, with this theory applied in PHP-based examples.

Some of the more advanced topics covered here are endpoint testing, embedding data objects in a consistent and scalable manner, paginating responses (including embedded objects) and hypermedia "HATEOAS" controls.

Bundles that include this book

Vagrant CookBook
Build APIs You Won't Hate
2 Books
$46.98
Regular Price
$38.99
Bundle Price
Scaling PHP7 Applications
Build APIs You Won't Hate
2 Books
$85.99
Regular Price
$79.00
Bundle Price
Servers for Hackers
Build APIs You Won't Hate
2 Books
$71.99
Regular Price
$54.99
Bundle Price
Minimum Viable Tests
Build APIs You Won't Hate
2 Books
$45.99
Regular Price
$50.00
Bundle Price
The Node Craftsman Book
Build APIs You Won't Hate
2 Books
$49.99
Regular Price
$39.99
Bundle Price
Laravel: Code Smart
Build APIs You Won't Hate
2 Books
$56.98
Regular Price
$48.99
Bundle Price
The Majesty of Vue.js 2
Build APIs You Won't Hate
2 Books
$51.89
Regular Price
$42.99
Bundle Price
Retrofit: Love Working with APIs on Android
Build APIs You Won't Hate
2 Books
$54.99
Regular Price
$46.99
Bundle Price

About the Author

Phil Sturgeon
Phil Sturgeon

Phil has seen a few trends come and go during a long and varied career of building stuff for money as an employee, freelancer, consultant and now CTO. One trend over recent years is the rise of APIs as an everyday part of the average server-side developers job.

Back in 2009 Phil released a CodeIgniter Rest Server, wrote a few articles about how to use it and built handfuls of APIs for his freelance clients. This tool was fairly basic, but covered HTTP-based routing, HTTP Basic/Digest/API Key authentication, added logging and throttling and did not force CRUD-based conventions. The internet seemed to like it, and this code is still used by Apple, the UN and USA.gov.

Later on as a core-contributor to FuelPHP he added this functionality to the core, and again built out a bunch of APIs for people. Then he got a job in NYC, to take over as Lead Engineer for a company that - you guessed it - had a FuelPHP API and wanted to improve it.

After two years of working on their API, Phil has moved to Ride.com, building their API with an amazing team of developers.

Phil has been building APIs for so long, he has come up with a very long list of ways to make them not suck, and he'd like to share the information with you all.

About the Contributors

Alex Biblie
Alex Biblie

Technical Review

Alex knows his stuff about APIs. Previously working at the University of Lincoln he used to build out OAuth-based APIs for them. Then he moved to @VideoGamerCom and is doing the same for them, at a very high level. Alex also created the OAuth 2 PHP Server used in the later chapters, so is the perfect person to help out with technical review.
Ashley Hockney
Ashley Hockney

Editor

Ashley is an absolute champion of an editor. She has gone through my book a bunch of times, pointing out all my grammatical flaws with a big red marker, getting the book up to scratch enough for it to go to print!
Ben Corlett
Ben Corlett

Cameo Coder

Ben helps out at Kapture now and then as a freelancer and took care of our original Behat testing. I gave him the vague plan for how I would like our Behat tests to run and he coded it up. He is responsible for the majority of the FeatureContext.php bundled in the Sample Code.

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub