Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hendisantika/kotlin-postgres

A Simple CRUD API using Spring Boot Application using PostgreSQL Database
https://github.com/hendisantika/kotlin-postgres

kotlin postgresql spring-boot spring-data-jpa spring-mvc springframework

Last synced: about 2 months ago
JSON representation

A Simple CRUD API using Spring Boot Application using PostgreSQL Database

Awesome Lists containing this project

README

        

# Spring Boot Kotlin PostgreSQL

Open your terminal then type this :

`mvn clean spring-boot:run`

Open your browser :

1. Save Data

`http://localhost:8080/save`

2. Find All

```
http://localhost:8080/findAll

[
{
"firstName": "Hendi",
"lastName": "Santika",
"id": 1
},
{
"firstName": "Uzumaki",
"lastName": "Naruto",
"id": 2
},
{
"firstName": "Uchiha",
"lastName": "Sasuke",
"id": 3
},
{
"firstName": "Haruno",
"lastName": "Sakura",
"id": 4
},
{
"firstName": "Hatake",
"lastName": "Kakashi",
"id": 5
}
]

```

3. Find By Id

`http://localhost:8080/findById/1`

4. Find By Lastname

`http://localhost:8080/findByLastname/Kakashi`