Skip to content
awaseemPublic

About

A simple storage API

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

Blob

Go Report Card

A simple storage API that using Redis allowing for extremely fast response times!

Setup

ensure you point to a valid JWTea microservice for auth! You can also customize the configuration variables via enviroment variables:

// redis enviroment variables
"REDIS_HOST" 
"REDIS_PORT"
"REDIS_PASSWORD"
"REDIS_DB"

// port enviroment variables
"PORT"

// jwtea enviroment variables
"JWTEA_URL" 

setup up is simple with the use of glide:

glide install
go build
./blob

Routes

GET "/status"

Get the status of the application.

GET "/get/{key}"

Get value based on key

GET "/get/search/{key}"

Get all values that match the key

POST "/login"

Login using JWTea for token based auth, there is no need for tokens for reading data only writing!. Example post body (JSON)

{
    "username": "test",
    "password": "shhhhh!"
}

POST "/set"

Set value based on key. Example post body (JSON)

{
    "token": "VALID TOKEN RETURNED FROM LOGIN",
    "key": "hello",
    "value": "hello world!"
}

About

A simple storage API

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

⌂ 换网址