Download Build APIs You Won't Hate by Phil Sturgeon PDF

By Phil Sturgeon

Everyone and their puppy desires an API, so that you may still most likely construct them.

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

Show description

Read or Download Build APIs You Won't Hate PDF

Best web development books

Information Architecture for the World Wide Web: Designing Large-Scale Web Sites (3rd Edition)

The post-Ajaxian internet 2. zero international of wikis, folksonomies, and mashups makes well-planned info structure much more crucial. How do you current huge volumes of knowledge to those that have to locate what they're searching for quick? This vintage primer indicates details architects, designers, and site builders how one can construct large-scale and maintainable websites which are beautiful and straightforward to navigate.

The re-creation is punctiliously up-to-date to deal with rising applied sciences -- with contemporary examples, new situations, and data on top practices -- whereas conserving its specialize in basics. With themes that diversity from aesthetics to mechanics, info structure for the area extensive internet explains the way to create interfaces that clients can comprehend immediately. inside of, you'll find:

* an outline of data structure for either rookies and skilled practitioners

* the basic elements of an structure, illustrating the interconnected nature of those platforms. up-to-date, with updates for tagging, folksonomies, social class, and guided navigation

* instruments, options, and techniques that take you from examine to method and layout to implementation. This variation discusses blueprints, wireframes and the position of diagrams within the layout phase

* a chain of brief essays that supply functional information and philosophical recommendation when you paintings on info architecture

* The enterprise context of training and selling info structure, together with fresh classes on easy methods to deal with company architecture

* Case stories at the evolution of 2 huge and intensely diverse details architectures, illustrating top practices alongside the way

How do you rfile the wealthy interfaces of net purposes? How do you layout for a number of systems and cellular units? With emphasis on objectives and methods over strategies or applied sciences, this drastically renowned booklet offers wisdom approximately info structure with a framework for you to research new methods -- and unlearn outdated ones.

Designing Evolvable Web APIs with ASP.NET

Layout and construct internet APIs for a wide diversity of clients—including browsers and cellular devices—that can adapt to alter over the years. This functional, hands-on advisor takes you thru the idea and instruments you want to construct evolvable HTTP companies with Microsoft's ASP. web net API framework.

Developing Web Components: UI from jQuery to Polymer

Even supposing net elements are nonetheless at the bleeding edge—barely supported in smooth browsers—the expertise is usually relocating super quick. This functional consultant will get you on top of things at the strategies underlying W3C's rising average and indicates you ways to construct customized, reusable HTML5 net parts.

Transitions and Animations in CSS: Adding Motion with CSS

Upload existence and intensity on your internet purposes and increase person event in the course of the discrete use of CSS transitions and animations. With this concise consultant, you’ll how to make web page components flow or switch in visual appeal, no matter if you must realistically jump a ball, steadily extend a drop-down menu, or just convey cognizance to a component while clients hover over it.

Additional info for Build APIs You Won't Hate

Sample text

Try C, it works! 5 Common Pitfalls 200 OK and Error Code If you return a HTTP status code of 200 with an error code then Chuck Norris will roundhouse your door in, destroy your computer, instantly 35-pass wipe your backups, cancel your Dropbox account and block you from GitHub. HTTP 4xx or 5xx codes alert the client that something bad happened, and error codes provide specifics of the exact issue if the client is interested. Non-Existent, Gone, or Hiding? 404 is drastically overused in applications.

Return Response */ public function errorUnauthorized($message = 'Unauthorized') { return $this->setStatusCode(401)->respondWithError($message, self::CODE_UNAUTHORIZ\ ED); } 76 /** * Generates a Response with a 400 HTTP header and a given message. * * @return Response */ public function errorWrongArgs($message = 'Wrong Arguments') { return $this->setStatusCode(400)->respondWithError($message, self::CODE_WRONG_ARGS\ 77 78 79 80 81 82 83 84 85 86 ); } This basically allows for generic error messages to be returned in your controller without having to think too much about the specifics.

Well, this XML structure is a typical “auto-generated” chunk of XML converted from an array, in the same way that JSON is built - but this of course ignores attributes and does not allow for all the specific structure that your average XML consumer will demand. If you want to start using attributes for some bits of data but not others then your conversion logic becomes INSANELY complicated. How would we build something like this? The answer is unless you seek specific fields and try to guess that an “id” is probably an attribute, etc then there is no programatic way in your API to take the same array and make JSON AND XML.

Download PDF sample

Rated 4.46 of 5 – based on 16 votes