Skip to content

educobuci/restfulie-javascript

 
 

Repository files navigation

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 install

To use the restfulie you need to import the libraries listed in the
\webContent\restfulie\lib.

<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2F..%2F..%2Frestfulie%2Flib%2Frestfulie.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2F..%2F..%2Frestfulie%2Flib%2Fjson2.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2F..%2F..%2Frestfulie%2Flib%2Fjson2xml.js"></script>
<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2F..%2F..%2Frestfulie%2Flib%2Fxml2json.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.

About

Restfulie's javascript port

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors