Oops! Looks like we're having trouble connecting to our server.
Refresh your browser window to try again.
About this product
Product Identifiers
PublisherO'reilly Media, Incorporated
ISBN-101449356567
ISBN-139781449356569
eBay Product ID (ePID)159813880
Product Key Features
Number of Pages115 Pages
LanguageEnglish
Publication NamePhp Web Services : APIs for the Modern Web
SubjectWeb / Web Services & APIs, Programming Languages / Php, Web / Design
Publication Year2013
TypeTextbook
AuthorLorna Jane Mitchell
Subject AreaComputers
FormatTrade Paperback
Dimensions
Item Height0.3 in
Item Weight7.8 Oz
Item Length9.1 in
Item Width7 in
Additional Product Features
Intended AudienceScholarly & Professional
LCCN2013-454853
Dewey Edition23
IllustratedYes
Dewey Decimal005.2762
Table Of ContentPreface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments;Chapter 1: HTTP; 1.1 Clients and Servers; 1.2 Making HTTP Requests;Chapter 2: HTTP Verbs; 2.1 Making GET Requests; 2.2 Making POST Requests; 2.3 Using Other HTTP Verbs;Chapter 3: Headers; 3.1 Request and Response Headers; 3.2 Common HTTP Headers; 3.3 Custom Headers;Chapter 4: Cookies; 4.1 Cookie Mechanics; 4.2 Working with Cookies in PHP;Chapter 5: JSON; 5.1 When to Choose JSON; 5.2 Handling JSON with PHP; 5.3 JSON in Existing APIs;Chapter 6: XML; 6.1 When to Choose XML; 6.2 XML in PHP; 6.3 XML in Existing APIs;Chapter 7: RPC and SOAP Services; 7.1 RPC; 7.2 SOAP;Chapter 8: REST; 8.1 RESTful URLs; 8.2 Resource Structure and Hypermedia; 8.3 Data and Media Types; 8.4 HTTP Features in REST; 8.5 Additional Headers in RESTful Services; 8.6 RESTful versus Useful;Chapter 9: Debugging Web Services; 9.1 Debug Output; 9.2 Logging; 9.3 Debugging from Outside Your Application; 9.4 Finding the Tool for the Job;Chapter 10: Making Service Design Decisions; 10.1 Service Type Decisions; 10.2 Consider Data Formats; 10.3 Customizable Experiences; 10.4 Pick Your Defaults;Chapter 11: Building a Robust Service; 11.1 Consistency Is Key; 11.2 Making Design Decisions for Robustness;Chapter 12: Error Handling in APIs; 12.1 Output Format; 12.2 Meaningful Error Messages; 12.3 What to Do When You See Errors;Chapter 13: Documentation; 13.1 Overview Documentation; 13.2 API Documentation; 13.3 Interactive Documentation; 13.4 Tutorials and the Wider Ecosystem;A Guide to Common Status Codes;Common HTTP Headers;Colophon;
SynopsisThis book is a super reference to all things API-related. It explains the underlying theory and the various service types that you may encounter; it shows how to handle them and gives advice on how to choose between them for your own services. With examples drawn from the real world and code samples you can use yourself, this book will have your API online in no time., This book is a super reference to all things API-related. It explains the underlying theory and the various service types that you may encounter; it shows how to handle them and gives advice on how to choose between them for your own services., Whether you're sharing data between two internal systems or building an API so users can access their data, this practical book provides everything you need to build web service APIs with PHP. Author Lorna Jane Mitchell uses code samples, real-world examples, and advice based on her extensive experience to guide you through the process--from the underlying theory to methods for making your service robust. PHP is ideally suited for both consuming and creating web services. You'll learn how to use this language with JSON, XML, and other web service technologies. Explore HTTP, from the request/response cycle to its verbs, headers, and cookies Determine whether JSON or XML is the best data format for your application Get practical advice for working with RPC, SOAP, and RESTful services Use a variety of tools and techniques for debugging HTTP web services Choose the service that works best for your application, and learn how to make it robust Learn how to document your API--and how to design it to handle errors