An API Server made with Express
This is the API server for the Instagram Directory project. The project contains is like a Yellow Pages but for Instagram Business
Note: Instagram Directory requires Node.js v4 or newer
npm install
The API ships with several convenience commands (runnable via npm
):
npm start
: start the servernpm test
: run unit tests (TBD)npm run dev
: start the server with nodemon
METHOD | ENDPOINT | USAGE | RETURNS |
---|---|---|---|
GET | /api/businesses/{id} | Get a business | business |
GET | /api/businesses | Get a list of businesses | businesses |
METHOD | ENDPOINT | USAGE | RETURNS |
---|---|---|---|
GET | /api/categories | Get a list of categories | categories |
GET | /api/categories/{id}/subcategories | Get a category related subcategories | subcategories |
METHOD | ENDPOINT | USAGE | RETURNS |
---|---|---|---|
GET | /api/subcategories | Get a list of subcategories | subcategories |
GET | /subcategories/{id}/businesses | Get a subcategory related businesses | businesses |
GET | /api/subcategories/{id} | Get a subcategory | subcategory |
Please fork and pull request against upstream master on a feature branch. Pretty please; provide unit tests and script
fixtures in the test
directory.
Travis tests every release. (TBD)