Designing APIs with Swagger and Openapi
Autor Joshua S. Ponelat, Lukas L. Rosenstocken Limba Engleză Paperback – 26 oct 2021
Problema centrală în dezvoltarea software-ului modern nu este doar scrierea codului, ci asigurarea unei comunicări fiabile între sisteme prin interfețe bine structurate. Volumul Designing APIs with Swagger and Openapi propune o soluție tehnică riguroasă: trecerea la paradigma „design-first”. Această metodă prioritizează definirea contractului API-ului înainte de implementarea propriu-zisă, utilizând standardul OpenAPI pentru a crea specificații care servesc drept sursă unică de adevăr. Reținem că autorii Joshua S. Ponelat și Lukas L. Rosenstock nu se rezumă la teorie, ci ghidează cititorul prin procesul de construire a unor componente esențiale precum mock-urile pentru testare, server stubs și biblioteci SDK, facilitând astfel un flux de lucru accelerat pentru echipele de dezvoltare. Structura cărții este una progresivă, unde conceptele sunt introduse prin exemple care evoluează în complexitate, reflectând provocările reale din mediul de producție. Cititorul care a aplicat ideile din Restful API Design de Matthias Biehl va găsi aici instrumentarul practic necesar pentru a trece de la înțelegerea principiilor HTTP și a formatelor de date la automatizarea documentației și a testării prin ecosistemul Swagger. În timp ce alte lucrări se concentrează pe arhitectură, această carte de la Manning Publications pune accent pe specificații tehnice concrete și pe interoperabilitate. Credem că valoarea adăugată constă în modul în care este tratată mentenanța pe termen lung, oferind dezvoltatorilor metode sigure de a expune funcționalitățile software fără a compromite stabilitatea sistemului.
Preț: 337.20 lei
Preț vechi: 421.49 lei
-20%
Carte disponibilă
Livrare economică 24 septembrie-08 octombrie
Specificații
ISBN-10: 1617296287
Pagini: 400
Dimensiuni: 254 x 235 x 23 mm
Greutate: 0.78 kg
Editura: Manning Publications
De ce să citești această carte
Această carte este esențială pentru programatori și arhitecți software care doresc să stăpânească ecosistemul Swagger și standardul OpenAPI. Cititorul câștigă abilitatea de a proiecta interfețe RESTful profesionale, reducând erorile de comunicare între echipe prin generarea automată de documentație și cod. Este un ghid practic care transformă designul API-ului dintr-o sarcină secundară într-un avantaj competitiv prin automatizare și rigoare tehnică.
Descriere
Designing APIs with Swagger and OpenAPI introduces you to a design-first paradigm that will teach you the best practices for describing and designing RESTful APIs using OpenAPI and Swagger.
Using standards like OpenAPI, you can provide reliable, easy-to-use interfaces that allow other developers safe, controlled access to your software. Designing APIs with Swagger and OpenAPI is a hands-on primer to properly designing and describing your APIs using the most widely-adopted standard.
Designing APIs with Swagger and OpenAPI introduces you to a design-first paradigm that will teach you the best practices for describing and designing RESTful APIs using OpenAPI and Swagger. You'll build upon progressively-enhanced examples as you learn to describe an API and then extend it in the kind of scenarios you'd encounter in the real world. As you go, you'll use the popular Open Source tools to define APIs, generate documentation, and build other developer-friendly components like mocks, server stubs, and client SDKs.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
Descriere scurtă
In Designing APIs with Swagger and OpenAPI you will learn how to:
Understand OpenAPI syntax and structure
Use Swagger and other tooling to create OpenAPI definitions
Design authentication and authorization
Turn an OpenAPI description into online documentation
Automate processes and generating code
Iterate an API design with user stories
Build a frontend against a mock server
Generate backend code with Swagger Codegen
Versioning an API and dodging breaking changes
Work with cross-functional teams
Designing APIs with Swagger and OpenAPI is a comprehensive guide to designing and describing your first RESTful API using the most widely adopted standards. Following expert instruction from Swagger core contributor Josh Ponelat and API consultant Lukas Rosenstock, you’ll spend each chapter progressively expanding the kind of APIs you’ll want to build in the real world. You’ll utilize OpenAPI and Swagger to help automate your workflow, and free up your time to work on more exciting features. Learn the syntax and structure of OpenAPI definitions, create and iterate on an API design with common tools, and release your API to the public.
About the technology
Create web APIs that customers and developers will love! Using Swagger, a collection of tools for defining and documenting REST APIs, you will build safe, controlled access to your software. And because Swagger implements the vendor-neutral OpenAPI specification, you’ll be building to the same standards adopted by Google, Microsoft, and Amazon.
About the book
Designing APIs with Swagger and OpenAPI introduces a design-first approach. Written for developers new to API design, it follows the lifecycle of an API project from concept to production. You’ll explore the dos and don’ts of APIs through progressively complete examples. You’ll get hands-on experience designing APIs for specific business needs, using open source tools to generate documentation, and building developer-friendly components like mocks and client SDKs.
What's inside
OpenAPI syntax and structure
Using Swagger to create OpenAPI definitions
Automating processes and generating code
Working with cross-functional teams
About the reader
For web developers. No prior knowledge of Swagger or OpenAPI required.
About the author
Josh Ponelat is the Swagger Open Source lead at SmartBear. Lukas Rosenstock is an independent software developer and API consultant.
Table of Contents
PART 1 DESCRIBING APIS
1 Introducing APIs and OpenAPI
2 Getting set up to make API requests
3 Our first taste of OpenAPI definitions
4 Using Swagger Editor to write OpenAPI definitions
5 Describing API responses
6 Creating resources
7 Adding authentication and authorization
8 Preparing and hosting API documentation
PART 2 DESIGN-FIRST
9 Designing a web application
10 Creating an API design using OpenAPI
11 Building a change workflow around API design–first
12 Implementing frontend code and reacting to changes
13 Building a backend with Node.js and Swagger Codegen
14 Integrating and releasing the web application
PART 3 EXTENDING APIS
15 Designing the next API iteration
16 Designing schemas with composition in OpenAPI
17 Scaling collection endpoints with filters and pagination
18 Supporting the unhappy path: Error handling with problem+json
19 Improving input validation with advanced JSON Schema
20 Versioning an API and handling breaking changes
21 The API prerelease checklist