Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/senocak/springboot-kotlin-etcd
SpringBoot Kotlin ETCD
https://github.com/senocak/springboot-kotlin-etcd
Last synced: about 6 hours ago
JSON representation
SpringBoot Kotlin ETCD
- Host: GitHub
- URL: https://github.com/senocak/springboot-kotlin-etcd
- Owner: senocak
- Created: 2024-05-08T14:44:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-08T15:34:25.000Z (6 months ago)
- Last Synced: 2024-05-08T18:02:46.755Z (6 months ago)
- Language: Kotlin
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# CRUD Operation for ETCD Key-Value DataStore
### Get All Data
```http request
GET http://127.0.0.1:8091/etcd
```### Get By Id
```http request
GET http://127.0.0.1:8091/etcd/5974ab1c-bbfe-43b3-a689-623a29ad15d7
```### Get All Keys
```http request
GET http://127.0.0.1:8091/etcd/keys
```### Create New Data
```http request
POST http://127.0.0.1:8091/etcd
Content-Type: application/json{
"title": "{{$random.alphanumeric(10)}}",
"author": "{{$random.email}}"
}
```### Delete All Data
```http request
DELETE http://127.0.0.1:8091/etcd
```### Delete Single Data
```http request
DELETE http://127.0.0.1:8091/etcd/cd45f051-0378-413a-89ed-49d3cf90e9a8
```