Restful versioned API proof of concept using the following technologies:
- ESlint
- Babel
- Express
- Cassandra - using cassandra-driver
- Mocha - unit tests
- Gaze - homebrew file-watcher for automatic re-transpiling and express server re-loading
To build the solution run the following command lines:
- npm install
Send all API calls to:
- localhost:3000/{Version}
Versions
- Contacts
GET
/contactsPOST
/contacts
- Contacts/{id}
GET
/contacts/{contact_id}PUT
/contacts/{contact_id}DELETE
/contacts/{contact_id}
Example: GET
localhost:3000/v1/contacts