Book description
Follow real-world API projects from concept to production, and learn hands-on how to describe and design APIs using OpenAPI.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
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 Authors
Josh Ponelat is the Swagger Open Source lead at SmartBear. Lukas Rosenstock is an independent software developer and API consultant.
Quotes
This book clearly presents patterns and techniques that will enhance the experience for all software developers who need to work with APIs!
- From the Foreword by Tony Tam, Founder of Swagger
Everyone in the business of designing APIs should read this book!
- Pierre-Michel Ansel, 8x8
Essential advice for design-first API development.
- Ian Lovell, Cutover
A must-read for individuals and teams that are building APIs.
- Foster Haines, Senior Consultant at J2 Interactive
Table of contents
- inside front cover
- Designing APIs with Swagger and OpenAPI
- Copyright
- dedication
- contents
- front matter
- 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
- 21.1 Pros and cons of a public API
- 21.2 The checklist
- 21.3 Getting the API working
- 21.4 Documentation
- 21.5 Getting your API consistent
- 21.6 Validation and error reporting
- 21.7 An API roadmap and exposure index
- 21.8 Getting a change strategy
- 21.9 Improving security
- 21.10 Monitoring your API
- 21.11 Releasing the API
- Summary
- Appendix A. Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1
- index
- inside back cover
Product information
- Title: Designing APIs with Swagger and OpenAPI
- Author(s):
- Release date: June 2022
- Publisher(s): Manning Publications
- ISBN: 9781617296284
You might also like
book
Microservice APIs
Strategies, best practices, and patterns that will help you design resilient microservices architecture and streamline your …
book
Designing Web APIs
Using a web API to provide services to application developers is one of the more satisfying …
book
Design and Build Great Web APIs
APIs are transforming the business world at an increasing pace. Gain the essential skills needed to …
book
API Design Patterns
A collection of best practices and design standards for web and internal APIs. In API Design …