Skip to content

andre-artus/kotlin-optional-param-spring-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin Optional-Param Spring Demo

This application clears the database on start. Make sure nothing in application.properties points to a production database.

This is not a demonstration of best practices, it's intention is to show a very specific thing: using Kotlin data classes with optional id fields using Spring Boot and MongoDB.

Run the application and send snippets from sample_data via curl or PostMan

List all the Projects

GET /project/

Accept a list of projects and store them directly in the DB

POST /project/batch

Create a Project directly into MongoDB

POST /project/

Validates a ProjectRequest before attempting to store a Project

POST /project/valid

Usage examples in the sample_data directory.

About

Kotlin Optional-Param Spring Demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages