Converting OAS to Spring code
I am sure you are as excited as I am to start implementing the API. So far, we have learned about the RESTful web service theory and concepts and Spring fundamentals, as well as designing our first API specs for a sample e-commerce application.
Either you can clone the Git repository (https://github.com/PacktPublishing/Modern-API-Development-with-Spring-and-Spring-Boot) or you can start to create a Spring project from scratch using Spring Initializr (https://start.spring.io/) with the following options:
- Project:
Gradle
- Language:
Java
- Spring Boot:
2.3.5.RELEASE
- Project metadata with your preferred values
- Packaging:
JarAdded
- Java:
15
(You can change it to 14 in thebuild.gradle
file later.) - Dependencies:
'org.springframework.boot:spring-boot-starter-web' (Spring Web in Spring Initializer)
Once you open the project in your favorite IDE (IntelliJ, Eclipse, or NetBeans), you can add the following extra dependencies...