Skip to content

Generate Request and Response Example by Spring Cloud Contract Tests

Notifications You must be signed in to change notification settings

FelipeAdorno/springdoc-with-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springdoc-with-contracts

This is a POC to generate springdoc-openapi Request/Response examples based on spring-cloud-contract.

How achieve this:

  1. Add @Operation annotation to RestService and set operationId with the folder and the name of the contract. operation

  2. Create SpringBootTest class extending MonkeyAPIDocumentationBase. operation

  3. Run the test and the openapi.json file will be generated on the openapi folder.

    operation

GET - Contract

operation

GET - Documentation

operation

About

Generate Request and Response Example by Spring Cloud Contract Tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published