Skip to content

thoersch/kotlin-spring-boot-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a seed and example project for building a REST api in Kotlin and spring boot

Install Gradle if you don't already have it

brew install gradle

Running the API

./gradlew bootRun

Interacting

You can now interact with the API on port 8080

GET Requests:

GET 127.0.0.1:8080/users
GET 127.0.0.1:8080/users/1
GET 127.0.0.1:8080/books
GET 127.0.0.1:8080/books/1
GET 127.0.0.1:8080/users/1/books

PUT Requests:

PUT 127.0.0.1:8080/users/1/books
Content-Type: application/json
{ "id":1, "title":"IT", "author":"Stephen King", "isbn":"123456789123456789" }

DELETE Requests

DELETE 127.0.0.1:8080/users/1/books/1

Copyright © 2017 Tyler Hoersch

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Seed and Example Project using Kotlin and Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages