Designing APIs with Swagger and OpenAPI

Book Cover
Average Rating
Published
Shelter Island : Manning Publications, [2022].
Status
Available Online

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 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. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. 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

More Details

Format
Language
English
ISBN
9781617296284, 1617296287, 9781638352273, 1638352275

Notes

General Note
Includes index.
Description
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.
Local note
O'Reilly O'Reilly Online Learning: Academic/Public Library Edition

Discover More

Also in this Series

Checking series information...

Reviews from GoodReads

Loading GoodReads Reviews.

Citations

APA Citation, 7th Edition (style guide)

Ponelat, J. S., Tam, T., & Rosenstock, L. (2022). Designing APIs with Swagger and OpenAPI . Manning Publications.

Chicago / Turabian - Author Date Citation, 17th Edition (style guide)

Ponelat, Joshua S,, Tony, Tam and Lukas, Rosenstock. 2022. Designing APIs With Swagger and OpenAPI. Shelter Island: Manning Publications.

Chicago / Turabian - Humanities (Notes and Bibliography) Citation, 17th Edition (style guide)

Ponelat, Joshua S,, Tony, Tam and Lukas, Rosenstock. Designing APIs With Swagger and OpenAPI Shelter Island: Manning Publications, 2022.

Harvard Citation (style guide)

Ponelat, J. S., Tam, T. and Rosenstock, L. (2022). Designing apis with swagger and openapi. Shelter Island: Manning Publications.

MLA Citation, 9th Edition (style guide)

Ponelat, Joshua S,,, Tony Tam, and Lukas Rosenstock. Designing APIs With Swagger and OpenAPI Manning Publications, 2022.

Note! Citations contain only title, author, edition, publisher, and year published. Citations should be used as a guideline and should be double checked for accuracy. Citation formats are based on standards as of August 2021.

Staff View

Grouped Work ID
ac2f02ac-3fb7-0787-3905-669ad283aae3-eng
Go To Grouped Work View in Staff Client

Grouping Information

Grouped Work IDac2f02ac-3fb7-0787-3905-669ad283aae3-eng
Full titledesigning apis with swagger and openapi
Authorponelat joshua s
Grouping Categorybook
Last Update2025-01-24 12:33:29PM
Last Indexed2025-05-22 03:32:53AM

Book Cover Information

Image SourcecontentCafe
First LoadedDec 29, 2023
Last UsedJan 26, 2025

Marc Record

First DetectedMar 20, 2023 10:19:19 AM
Last File Modification TimeDec 17, 2024 08:21:30 AM
SuppressedRecord had no items

MARC Record

LEADER05837cam a22005537i 4500
001on1331409013
003OCoLC
00520241217081907.0
006m     o  d        
007cr cnu---unuuu
008220621s2022    nyua    o     001 0 eng d
019 |a 1382798477
020 |a 9781617296284|q (electronic bk.)
020 |a 1617296287|q (electronic bk.)
020 |a 9781638352273|q (electronic bk.)
020 |a 1638352275|q (electronic bk.)
035 |a (OCoLC)1331409013|z (OCoLC)1382798477
037 |a 9781617296284|b O'Reilly Media
040 |a ORMDA|b eng|e rda|e pn|c ORMDA|d EBLCP|d OCL|d OCLCQ|d N$T|d OCLCO|d OCLCL
049 |a MAIN
050 4|a QA76.76.A65
08204|a 005.1|2 23/eng/20220621
1001 |a Ponelat, Joshua S,,|e author.
24510|a Designing APIs with Swagger and OpenAPI /|c Joshua S. Ponelat, Ludas L. Rosenstock ; foreword by Tony Tam.
264 1|a Shelter Island :|b Manning Publications,|c [2022]
300 |a 1 online resource (1 volume.) :|b illustrations
336 |a text|b txt|2 rdacontent
337 |a computer|b c|2 rdamedia
338 |a online resource|b cr|2 rdacarrier
500 |a Includes index.
5050 |a Intro -- inside front cover -- Designing APIs with Swagger and OpenAPI -- Copyright -- dedication -- contents -- front matter -- foreword -- preface -- acknowledgments -- about this book -- Who should read this book -- How this book is organized: A roadmap -- About the code -- liveBook discussion forum -- Other online resources -- about the authors -- about the cover illustration -- Part 1 Describing APIs -- 1 Introducing APIs and OpenAPI -- 1.1 What is an API ecosystem? -- 1.2 Describing things -- 1.2.1 Bridget's task -- 1.2.2 The potential of Bridget's solution -- 1.3 What is OpenAPI?
5058 |a 1.3.1 Example OpenAPI definition -- 1.4 Where do OpenAPI definitions fit in? -- 1.5 What is Swagger? -- 1.6 What about REST? -- 1.7 When to use OpenAPI -- 1.7.1 For API consumers -- 1.7.2 For API producers -- 1.7.3 For API designers -- 1.8 This book -- Summary -- 2 Getting set up to make API requests -- 2.1 The problem -- 2.1.1 FarmStall API overview -- 2.1.2 The first two operations of the FarmStall API -- 2.2 Getting set up with Postman -- 2.3 FarmStall API -- 2.4 Our first request -- 2.4.1 Forming a GET request in Postman -- 2.4.2 Verification -- 2.5 Adding a review to the FarmStall API
5058 |a 2.5.1 Forming a POST request in Postman -- 2.5.2 Verification -- 2.6 Practice -- 2.6.1 Cat (and other animal) facts API -- 2.6.2 Random avatar API -- 2.6.3 DuckDuckGo's search engine API -- 2.6.4 Pirate talk API -- 2.7 HTTP for the brave -- Summary -- 3 Our first taste of OpenAPI definitions -- 3.1 The problem -- 3.2 Introducing the OpenAPI specification -- 3.3 A quick refresher on YAML -- 3.3.1 From JSON to YAML -- 3.4 Describing our first operation -- 3.5 Extending our first operation -- Summary -- 4 Using Swagger Editor to write OpenAPI definitions -- 4.1 Introducing Swagger Editor
5058 |a 4.1.1 The Editor panel -- 4.1.2 The UI Docs panel -- 4.1.3 The toolbar -- 4.1.4 Persistence -- 4.2 Writing the smallest OpenAPI definition in Swagger Editor -- 4.2.1 The smallest valid OpenAPI definition -- 4.2.2 Writing in Swagger Editor -- 4.2.3 A word on validation -- 4.3 Adding GET /reviews to our definition -- 4.4 Interacting with our API -- 4.4.1 Executing GET /reviews -- 4.4.2 Adding servers to our definition -- 4.4.3 Executing GET /reviews (again) -- Summary -- 5 Describing API responses -- 5.1 HTTP responses -- 5.2 The problem -- 5.3 The mind-blowing world of data schemas
5058 |a 5.4 JSON Schema -- 5.4.1 The type field -- 5.4.2 Adding a field to an object -- 5.4.3 The minimum and maximum keywords -- 5.4.4 Number vs. integer -- 5.5 Status codes -- 5.6 Media types (aka MIME) -- 5.7 Describing the GET /reviews response -- 5.7.1 Smallest response in OpenAPI -- 5.7.2 The GET /reviews 200 response body -- 5.7.3 Adding the rating field to our response body -- 5.7.4 Describing message, uuid, and userId -- Summary -- 6 Creating resources -- 6.1 The problem -- 6.2 Describing POST /reviews with a request body -- 6.2.1 Where to find request bodies
520 |a 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.
588 |a Description based on print version record.
590 |a O'Reilly|b O'Reilly Online Learning: Academic/Public Library Edition
650 0|a Application program interfaces (Computer software)|9 72854
650 0|a Application software|x Development.|9 70680
7001 |a Tam, Tony,|e writer of foreword.
7001 |a Rosenstock, Lukas,|e author.
758 |i has work:|a DESIGNING APIS WITH SWAGGER AND OPENAPI (Text)|1 https://id.oclc.org/worldcat/entity/E39PCYcqXwwKHBHcF7jtfbKjYd|4 https://id.oclc.org/worldcat/ontology/hasWork
77608|i Print version:|a Rosenstock, Lukas.|t Designing APIs with Swagger and OpenAPI.|d Shelter Island : Manning Publications, 2022|z 9781617296284|w (OCoLC)1289304450
85640|u https://library.access.arlingtonva.us/login?url=https://learning.oreilly.com/library/view/~/9781617296284/?ar|x O'Reilly|z eBook
938 |a ProQuest Ebook Central|b EBLB|n EBL7017935
938 |a EBSCOhost|b EBSC|n 3286800
994 |a 92|b VIA
999 |c 283938|d 283938