Restfulie javascript port is in its earlier stages. Wait a while for some extra information and docs.
Meanwhile visit Restfulie’s website
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.
To use:
or :
<script type="text/javascript" charset="utf-8" src="build/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
Do not forget to visit the official website for videos and other versions.
Restfulie is licensed under the Apache License, Version 2.0.