Demo Restful API with NodeJS and Angular HTTP / Resource controller
- restfulBearAPI (Manipulate FormUrlEncoded)
- restfulBearJSON (Manipulate JSON with bear*.html)
All 2 files are the same except restfulBearAPI is for API testing with PostMan and restfulBearAngular is manipulate the JSON ( Extract: res.json(bears); ) with 2 html example files:
-
/public/bearHttp.html (Angular http get/post)
-
/public/bearResource.html (Anugular Resource controller)
$ git clone https://github.com/wwarodom/csw.git
$ cd csw
$ npm init
$ npm install express body-parser --save
$ node restfulBearJSON.js
Go to: http://localhost/