Summary
This chapter focused on the critical topic of securing your languages and frameworks when developing APIs. Many of the most serious vulnerabilities we covered in this book originate from vulnerable code implementations or misconfigurations of frameworks. It is vital for the reader to understand the best practices for secure coding and safe framework usage.
First, we examined how to manage the design-first process in practice, covering the important topic of incorporating the OpenAPI definitions in the development lifecycle to ensure that the definition is the source of truth for the API and that all API code is derived from the definition. To do this, we examined two different code-generation tools: Swagger Codegen and the OpenAPI Generator. For the latter, we took a deep dive into understanding how to use it to generate secure server code stubs for various languages. As an API developer, you should become familiar with the fundamentals of generating server implementations...