/restify_customer_api

Customers API built with Restify & Mongoose

Primary LanguageJavaScript

Restify Customer API

RESTful API built with Node.js, Restify, Mongoose and JWT. It uses 'jsonwebtoken' to create the token and restify-jwt-community to protect routes.

Quick Start

# Install dependencies
npm install

# Serve on localhost:3000
npm start

API Endpoints

Customer Routes

  • GET /customers
  • GET /customers/:id
  • POST (Protected) /customers
  • PUT (Protected) /customers/:id
  • DELETE (Protected) /customers/:id

User Routes

  • POST /register
  • POST /auth

App Info

Author

Brad Traversy Traversy Media

Version

1.0.0

License

This project is licensed under the MIT License