Skip to content

crtaylor243/spring-cross-parameter-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-Parameter Validation

This is a simple application to demonstrate cross-parameter validation as described in this article

Getting Started

git clone [email protected]:crtaylor243/spring-cross-parameter-validation.git
cd spring-cross-parameter-validation
./gradlew bootRun

Testing Validation Logic

This simple application creates an /order endpoint that accepts a FlowerDeliveryOrder and returns a copy if all validation checks pass successfully. Invalid requests return an appropriate HTTP status code. There is an /example endpoint available to return a JSON-encoded sample FlowerDeliveryOrder to demonstrate the correct format.

Postman is a very useful tool for API testing. The Postman/ folder contains a collection of requests that can be imported into Postman, including examples of both valid and invalid requests to the /order endpoint.

About

Cross-Parameter Validation in Spring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages