0.1.10 • Published 9 years ago

kwaai-apiware v0.1.10

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

#kwaai-apiware

Express middleware specifically for creating restful JSON api's using JSON Schema, Mongo and Express

##Example

##API

###apiRoute(app,options) Adds an apiroute to express. app: the express app options:

  • collection
  • schema

###validateApiCall(req,res,next) Validates the data passed to the JSON api to ensure it is valid JSON and the content type is correct.

###ensureValidContentTypes(req,res,next) Ensures the content passed through to the api is valid JSON. Return 400 bad request.

###handleJSONError(req,res,next) Formats the correct error when a JSON error is detected

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago