Skip to content

oleggr/tnt-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tnt-web

Simple web service based on tarantool

What's inside

Simple key-value storage in tarantool available via http.

Routes

POST    /item           Add key-value pair
                            - 409 if key exist
                            - 400 if body incorrect
                            - body: 
                                {
                                    "key": "test", 
                                    "value": {SOME ARBITRARY JSON}
                                }

PUT     /item/:id       Update data related to key
                            - 404 if key not exist
                            - 400 if body incorrect
                            - body: 
                                {
                                    "value": {SOME ARBITRARY JSON}
                                }

GET     /item/:id       Get data by key
                            - 404 if key not exist

DELETE  /item/:id       Delete item by key
                            - 404 if key not exist

Contacts

Up