Build APIs You Won't Hate by Phil Sturgeon

By Phil Sturgeon

Everyone and their puppy wishes an API, so that you should still most likely easy methods to construct them.

Tasked with construction an API on your corporation yet don't have a clue the place to begin? Taken over an present API and hate it? outfitted your individual API and nonetheless hate it? This publication is for you.

Show description

Read Online or Download Build APIs You Won't Hate PDF

Similar web development books

The Principles of Object-Oriented JavaScript

If you’ve used a extra conventional object-oriented language, similar to C++ or Java, JavaScript most likely doesn’t look object-oriented in any respect. It has no proposal of sessions, and also you don’t even have to outline any items so one can write code. yet don’t be fooled—JavaScript is a very robust and expressive object-oriented language that places many layout judgements correct into your arms.

Developing Web Components: UI from jQuery to Polymer

Even supposing net elements are nonetheless at the bleeding edge—barely supported in sleek browsers—the expertise is additionally relocating tremendous quickly. This sensible consultant will get you up to the mark at the techniques underlying W3C's rising general and indicates you the way to construct customized, reusable HTML5 net elements.

The Ruby Programming Language

The Ruby Programming Language is the authoritative advisor to Ruby and offers entire assurance of types 1. eight and 1. nine of the language.

It was once written (and illustrated! ) via an all-star team:
• David Flanagan, bestselling writer of programming language "bibles" (including JavaScript: The Definitive advisor and Java in a Nutshell) and committer to the Ruby Subversion repository.
• Yukihiro "Matz" Matsumoto, author, dressmaker and lead developer of Ruby and writer of Ruby in a Nutshell, which has been extended and revised to develop into this book.

Why the fortunate stiff, artist and Ruby programmer extraordinaire. This ebook starts with a quick-start educational to the language, after which explains the language intimately from the ground up: from lexical and syntactic constitution to datatypes to expressions and statements and on via tools, blocks, lambdas, closures, sessions and modules.

The booklet additionally incorporates a lengthy and thorough creation to the wealthy API of the Ruby platform, demonstrating -- with heavily-commented instance code -- Ruby's amenities for textual content processing, numeric manipulation, collections, input/output, networking, and concurrency. a whole bankruptcy is dedicated to Ruby's metaprogramming capabilities.

The Ruby Programming Language files the Ruby language definitively yet with no the formality of a language specification. it truly is written for skilled programmers who're new to Ruby, and for present Ruby programmers who are looking to problem their figuring out and bring up their mastery of the language.

JavaScript Programming for the Absolute Beginner

This booklet not just academics JavaScript - an outstanding programming 'gateway' language - it additionally teaches readers the basic programming recommendations they should seize for you to examine any desktop language. Plus, it makes use of online game production as a instructing device. The target of the sequence is adaptive studying.

Additional resources for Build APIs You Won't Hate

Example text

If the change in question is simply a renamed field then this is insanely easy to handle: Before 'website' => $place->website, 1 After Outputting Data 50 'website' => $place->url, 1 By changing the right (our internal data structure) and keeping the left the same (the external field name) we maintain control over the stability for the client applications. Sometimes it is a status change. A new status is added, or the change is fairly drastic and the status all change, but the old API version is still expecting the old one.

1 Introduction If everything goes smoothly you want to show some data. If a valid request comes in for a data which is valid you show data, if creating something on the API with valid data, you show the created object. If something goes wrong, however, you want to let people know what is wrong using two simultaneous approaches: 1. HTTP status codes 2. 2 HTTP Status Codes Status Codes are used in all responses and have a number from 200 to 507 - with plenty of gaps in between and each has a message and a definition.

You can build your own tests in your own language or in any framework, but just go along with this PHP example to see a basic working - even if you personally prefer another language. Go on. It wont bite. 3 Setup As a PHP developer you simply need to install Behat, and this can be done with Composer³. It is fair to assume that if you are using any sort of modern PHP framework you are already familiar with this so I won’t bore the non-PHP devs by getting stuck into it. composer/vendor/bin/ is added to your $PATH and you should be good to go.

Download PDF sample

Rated 4.39 of 5 – based on 45 votes