openapi-first

Featured

Use when the project follows API-first / OpenAPI-first approach: generating controller interfaces, DTOs, and clients from an OpenAPI spec. Use when you see openapi.yaml, openapi-generator-maven-plugin, or ApiDelegate pattern in the project.

AI & Automation 225 stars 37 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
78
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# OpenAPI-First Development ## Maven Plugin Setup ```xml <plugin> <groupId>org.openapitools</groupId> <artifactId>openapi-generator-maven-plugin</artifactId> <version>7.5.0</version> <executions> <execution> <goals><goal>generate</goal></goals> <configuration> <inputSpec>${project.basedir}/src/main/resources/openapi.yaml</inputSpec> <generatorName>spring</generatorName> <apiPackage>com.example.api</apiPackage> <modelPackage>com.example.api.model</modelPackage> <configOptions> <delegatePattern>true</delegatePattern> <!-- implement delegate, not controller --> <interfaceOnly>false</interfaceOnly> <useSpringBoot3>true</useSpringBoot3> <!-- still the OpenAPI Generator Jakarta/Spring 6+ switch --> <useTags>true</useTags> <dateLibrary>java8</dateLibrary> <serializationLibrary>jackson</serializationLibrary> <openApiNullable>false</openApiNullable> <skipDefaultInterface>true</skipDefaultInterface> </configOptions> <generateSupportingFiles>true</generateSupportingFiles> <output>${project.build.directory}/generated-sources/openapi</output> </configuration> </execution> </executions> </plugin> ``` ## OpenAPI Spec Example ```...

Details

Author
rrezartprebreza
Repository
rrezartprebreza/spring-boot-skills
Created
4 months ago
Last Updated
6 days ago
Language
Java
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category