Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hendisantika/kotlin-postgres
- Owner: hendisantika
- Created: 2017-06-30T10:45:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-17T09:59:14.000Z (5 months ago)
- Last Synced: 2024-07-17T12:18:25.917Z (5 months ago)
- Topics: kotlin, postgresql, spring-boot, spring-data-jpa, spring-mvc, springframework
- Language: Kotlin
- Size: 163 KB
- Stars: 25
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`