Visit the official website for documentation, videos and other versions.
<script type="text/javascript" charset="utf-8" src="restfulie.js"></script>
or :
<script type="text/javascript" charset="utf-8" src="restfulie.min.js"></script>
This project required jquery your project.
resource = Restfulie.at(url).accepts('application/json').get();
x = {'price':11}; result = Restfulie.at(url).as("application/json").post(x);
resource = Restfulie.at(url).accepts('application/json').get(); resource = Restfulie.at(url).as('application/json').post(resource); console.log(resource.response.body) # the response body console.log(resource.response.code) # the response code
Restfulie Javascript was created by Carlos Alberto and has received contributions from:
Guilherme Silveira (Restfulie project leader)
Ricardo Valeriano
Caires Santos
First you got to install nodejs
For the next steps you’ll need npm
With npm installed you must install node-jake:
npm install jake
Now install UglifyJS:
npm install uglify
Run jake to build the Restfulie package uncompressed or minified.
jake
To run your unit tests execute:
open client/tests/convertersTest.html
For integration tests:
First things first execute
git submodule initand
git submodule updateafter that
bundle installto grab all the gems.
Go to Proxifier dir and execute
bundle install.
Be sure you have Restbuy and Proxifier running properly and after that just execute
test.shscript
Restfulie is licensed under the Apache License, Version 2.0.