Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1014 Bytes

File metadata and controls

39 lines (27 loc) · 1014 Bytes

#Flaper API Build Status

About

Browse API - http://api.flaper.org/explorer/

Based on LoopBack framework.

Requirements

mongodb 2.6 or higher

Installation

npm install

Initialization

To upload required constant to database

npm run constants (this only add new constants, indexes, doesn't remove anything, so this can be used for production db)

Running

npm start

Test

npm test

npm run t - will skip uploading fixtures

Sample data

To upload sample development data into database (will erase your current data). npm run fixtures

Authorization

Access token which you can get in the users/login method should be passed in the Authorization header:

Authorization: roEeqLH7oCCVsZgI1NJ0EM6i4jlGUeUO7ZlMugsXWluAXWGWjsGK5o3GtmK8qRNA

Api

Any collection can be used either in camelCase && CamelCase in url.