Librería Portfolio Librería Portfolio

Búsqueda avanzada

TIENE EN SU CESTA DE LA COMPRA

0 productos

en total 0,00 €

PHP WEB SERVICES 2E. APIS FOR THE MODERN WEB
Título:
PHP WEB SERVICES 2E. APIS FOR THE MODERN WEB
Subtítulo:
Autor:
MITCHELL, L
Editorial:
O´REILLY
Año de edición:
2016
Materia
PROGRAMACION INTERNET
ISBN:
978-1-4919-3309-1
Páginas:
180
29,95 €

 

Sinopsis

Whether you're sharing data between two internal systems or building an API so that users can access their data, this practical guide has everything you need to build APIs with PHP. Author Lorna Jane Mitchell provides lots of hands-on 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.

You'll learn how to use this language to work with JSON, XML, and other web service technologies. This updated second edition includes new tools and features that reflect PHP updates and changes on the Web.

Explore HTTP, from the request/response cycle to its verbs, headers, and cookies
Work with and publish webhooks-user-defined HTTP callbacks
Determine whether JSON or XML is the best data format for your application
Get advice for working with RPC, SOAP, and RESTful services
Use several tools and techniques for debugging HTTP web services
Choose the service that works best for your application, and learn how to make it robust
Document your API-and learn how to design it to handle errors



Chapter 1HTTP
Clients and Servers
Making HTTP Requests
Chapter 2HTTP Verbs
Serving GET Requests
Making GET Requests
Handling POST Requests
Making POST Requests
Using Other HTTP Verbs
Chapter 3Headers
Request and Response Headers
Identify Clients with User-Agent
Headers for Content Negotiation
Securing Requests with the Authorization Header
Caching Headers
Custom Headers
Chapter 4Cookies
Cookie Mechanics
Reading and Writing Cookies
Making Requests with Cookies
Cookies and APIs
Chapter 5JSON
When to Choose JSON
Handling JSON with PHP
Consuming JSON APIs
Chapter 6XML
XML in PHP
Consuming XML APIs
Chapter 7RPC and SOAP Services
RPC
SOAP
Chapter 8REST
RESTful URLs
Resource Structure and Hypermedia
Build the Basic RESTful Server
RESTful Versus Useful
Chapter 9Webhooks
GitHub's Webhooks
Publishing Your Own Webhooks
Chapter 10HTTP Tools
Easy Command-Line JSON
Graphical cURL Alternatives
Inspect HTTP Traffic with Wireshark
Tunnel Local Traffic Remotely with ngrok
Inspect, Edit, Repeat, and Share Requests
Proxying PHP Applications
Finding the Tool for the Job
Chapter 11Maintainable Web Services
Sample API Application
Consistent Output Formats
Debug Output as a Tool
Effective Logging Techniques
Error Handling with PHP Exceptions
Chapter 12Making Service Design Decisions
Service Type Decisions
How to Present API Data
Customizable Experiences
Pick Your Defaults
Chapter 13Building a Robust Service
Consistency Is Key
Error Handling in APIs
Meaningful Error Messages
What to Do When You See Errors
Making Design Decisions for Robustness
Chapter 14Publishing Your API
Documentation Is Key
API Description Languages
Automated Testing Tools
Tutorials and the Wider Ecosystem
Appendix A Guide to Common Status Codes
Appendix Common HTTP Headers