Skip to content

maangalabs/rest-apis-in-sails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST Apis in Sails

In Sails , it is easy to generate a REST API

sails generate api user

This will generate an API with user model and Controller

HOW TO USE THIS CODE


git clone https://github.com/maangalabs/rest-apis-in-sails.git

cd rest-apis-in-sails

sudo npm install

sails lift

Go to http://localhost:1337/employee/create?name=Pranav&empnum=123&[email protected] .

New User is generated.

Now test the api

http://localhost:1337/employee/findEmployeebyEmpnum/123

For more check ..

Maangalabs Tutorial : http://maangalabs.com/blog/2014/07/26/generating-rest-api-with-sails-js-part-2

About

REST apis in Sails Maangalabs Tutorial-2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published