https://github.com/sh1hab/rest-key-val-store
An API with four endpoints to create a key-value store. The purpose of the API is to store any arbitrary length value in a persistent store with respect to a key and later fetch these values by keys. These values will have a TTL (for example 5 minutes) and after the TTL is over, the values will be removed from the store.
https://github.com/sh1hab/rest-key-val-store
laravel php7 redis rest-api telenor
Last synced: 2 months ago
JSON representation
An API with four endpoints to create a key-value store. The purpose of the API is to store any arbitrary length value in a persistent store with respect to a key and later fetch these values by keys. These values will have a TTL (for example 5 minutes) and after the TTL is over, the values will be removed from the store.
- Host: GitHub
- URL: https://github.com/sh1hab/rest-key-val-store
- Owner: sh1hab
- Created: 2019-12-25T18:45:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T10:29:57.000Z (over 3 years ago)
- Last Synced: 2025-08-25T00:05:18.491Z (10 months ago)
- Topics: laravel, php7, redis, rest-api, telenor
- Language: PHP
- Homepage:
- Size: 271 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST key-val store
This is a RESTful API that supports the following HTTP requests:
### These are the following endpoints:
#### GET /values
Get all the values of the store.
```
response: {key1: value1, key2: value2, key3: value3...}
```
#### GET /values?keys=key1,key2
Get one or more specific values from the store.
```
response: {key1: value1, key2: value2}
```
#### POST /values
Save a value in the store.
```
request: {key1: value1, key2: value2..}
response: {message: Keys set successfully}
```
#### PATCH /values
Update a value in the store.
```
request: {key1: value5, key2: value3..}
response: {message: Keys updated successfully}
```