Skip to Content
Designing APIs with Swagger and OpenAPI
book

Designing APIs with Swagger and OpenAPI

by Lukas Rosenstock, Joshua Ponelat
June 2022
Intermediate to advanced
424 pages
11h 50m
English
Manning Publications
Content preview from Designing APIs with Swagger and OpenAPI

13 Building a backend with Node.js and Swagger Codegen

This chapter covers

  • Generating backend code with Swagger Codegen
  • Optimizing an OpenAPI definition for code generation
  • Designing a Mongoose/MongoDB database based on the domain model
  • Implementing a basic API operation in Node.js

José’s PetSitter team has created an OpenAPI definition for the API that connects the frontend with the backend. They have now reached the stage of the project where both developers are confident that the API is solid enough to start working on the implementation. In this chapter we’ll join Nidhi, the backend developer, as she builds a backend that exposes the API that Max designed in chapter 10 and that she herself reviewed in chapter 11. While we’ll touch upon ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design and Build Great Web APIs

Design and Build Great Web APIs

Mike Amundsen
Mastering API Architecture

Mastering API Architecture

James Gough, Daniel Bryant, Matthew Auburn

Publisher Resources

ISBN: 9781617296284Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link