Skip to content
Restfulie's javascript port
Find file
Pull request Compare This branch is 16 commits behind caelum:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
client
examples
server @ ce88bf7
.gitignore
.gitmodules
Gemfile
LICENSE
Readme.textile
changelog.txt
full_build.sh
jakefile
restfulie.js
restfulie.min.js
tests.sh

Readme.textile

Restfulie Javascript

Restfulie javascript port is in its earlier stages. Wait a while for some extra information and docs.

Meanwhile visit Restfulie’s website

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

To use:

<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

More info

Do not forget to visit the official website for videos and other versions.

License

Restfulie is licensed under the Apache License, Version 2.0.

Something went wrong with that request. Please try again.