Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Elefrant/elefrant-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elefrant-validator Component

wercker status

Dependency Status

Usage

Validation for REST Services.

When the component is enable, all routes from the API are block to non users. If you want to make a route public:

module.exports = [{
	path: '/',
	method: 'GET',
	oauth: false,
	version: [
		'1.0.0'
	],
	action: 'users.v1.getAll'
}];

Dependable components

elefrant-template-engine

elefrant-session

Structure

Config /config/

Copy oauth2.js from ./components/elefrant-oauth2 to main config folder.

Grants

Select the grunt types for the authentication server.

[
    'password',
    'refresh_token'
]

Launch tests

Just put in the console: npm test

License

MIT © Elefrant

About

Validation for REST Services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published