2.0.4 • Published 7 years ago

perfusorius-js v2.0.4

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

PerfusoriusJS for restful APIs

Lightweight RESTful API framework for NodeJS.

Configuration variables

  • name string Currently not in use
  • serverName string Shows in 'server' header
  • enableSecurityHeaders boolean, Default true
  • port number API server port`
  • cors object Object where you can set the cors information like maxAge, origin, credentials

Route

  • method string Request method
  • path string Path name, variables in path should start with colon : (ex. /path/:id)
  • middleware function || array of functions Single middleware function or array of a middleware functions
  • service function Route controller
  • version string Route version (ex. '1.*.*')

Without the "version" key is the route version 1.0.0 and it is accessible from v1/ before the route path ( /v1/here/is/route/path )


Installing a PerfusoriusJS

npm install perfusorius-js --save

Example

Click here to see an example written in Typescript

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago