Skip to content

Example of a simple service written in Kotlin and deployable to lambda.

License

Notifications You must be signed in to change notification settings

hshar7/kotlin-lambda-notes-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kotlin-lambda-notes-service

Example of a simple service written in Kotlin and deployable to lambda.

This service has the following endpoints:

curl --request GET \
  --url http://localhost:4567/notes
  
curl --request POST \
  --url http://localhost:4567/note \
  --header 'content-type: application/json' \
  --data '{
	"title": "My First Note"
}'

curl --request GET \
  --url http://localhost:4567/note/{oid}
  
  
curl --request PUT \
  --url http://localhost:4567/note/{oid} \
  --header 'content-type: application/json' \
  --data '{
	"content": "Hello World!"
}'

curl --request DELETE \
  --url http://localhost:4567/note/{oid}

Extended example of: https://github.com/hshar7/kotlin_lambda

For MongoDB Connection, edit Constants.kt with your connecion info. A good free service to test in Lambda: https://mlab.com

About

Example of a simple service written in Kotlin and deployable to lambda.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages