Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 75 lines (42 sloc) 2.135 kb

Restfulie Javascript

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.

A simple get

resource = Restfulie.at(url).accepts('application/json').get();

A simple post

x = {'price':11};
result = Restfulie.at(url).as("application/json").post(x);

Checking the result

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

Team

Restfulie Javascript was created by Carlos Alberto and has received contributions from:

Guilherme Silveira (Restfulie project leader)
Ricardo Valeriano
Caires Santos

How to build for development

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

Testing

To run your unit tests execute:

open client/tests/convertersTest.html

For integration tests:

Restbuy and Proxifier

First things first execute

git submodule init
and
git submodule update
after that
bundle install
to 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.sh
script

License

Restfulie is licensed under the Apache License, Version 2.0.

Something went wrong with that request. Please try again.