Skip to content

winsandymyint/version-controlled-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a answering a test for Full Stack Developer Position in Vault Dragon.

I set up the api at Linode server. OS is Ubuntu 14.04.

Api is created by using node, express and mongodb.

base url is: http://172.104.63.198

Method: POST

Endpoint: /object

Body: JSON: {mykey : value1}

Time: 6pm
#for getting all of the records
Method: GET

Endpoint: /object

Response: value1
Method: GET

Endpoint: /object/mykey

Response: value1
Method: POST

Endpoint: /object

Body: JSON: {mykey : value2}

Time: 6.05 pm
Method: GET

Endpoint: /object/mykey

Response: value2
Method: GET

Endpoint: /object/mykey?timestamp=1440568980 [6.03pm]

Response: value1

NOTE: npm install --production #for production

Run with node or nodemon

Development: node app --development

Production: node app --production

Test: npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published