https://github.com/hendisantika/kotlin-spring-boot
A Simple CRUD API using Spring Boot Application Kotlin
https://github.com/hendisantika/kotlin-spring-boot
Last synced: about 2 months ago
JSON representation
A Simple CRUD API using Spring Boot Application Kotlin
- Host: GitHub
- URL: https://github.com/hendisantika/kotlin-spring-boot
- Owner: hendisantika
- Created: 2017-06-26T21:02:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T23:14:00.000Z (about 2 months ago)
- Last Synced: 2025-04-13T00:13:54.675Z (about 2 months ago)
- Language: Kotlin
- Size: 185 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kotlin Spring Boot
Run this project by this command :
`mvn clean spring-boot:run`
```bash
curl http://localhost:8080/
``````bash
curl -H "Content-Type: application/json" -X POST -d '{
"firstName": "Hendi",
"lastName": "Santika"
}' http://localhost:8080/
``````bash
curl -X DELETE http://localhost:8080/1
``````bash
curl -H "Content-Type: application/json" -X PUT -d '{
"id": 6,
"firstName": "Hendi",
"lastName": "Santika"
}' http://localhost:8080/6
``````bash
curl -H "Content-Type: application/json" -X POST -d '{
"username": "admin",
"password": "password"
}' http://localhost:8080/sign-up
``````bash
curl -H "Content-Type: application/json" -X POST -d '{
"username": "admin",
"password": "password"
}' http://localhost:8080/login
```