Skip to content

A nice simple way to make rest calls to an API back end via AJAX

Notifications You must be signed in to change notification settings

razilo/razilorequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Razilo Request

TBD...

ajax function [type, url, data[, headers]] - Basic ajax request @param string type The type of request to make, get, post, put, delete... @param string url The correctly formed URL to hit... @param string data Any data to send along the way... @param object headers [optional] headers as key:value

get function [url, id] - GET rest request @param string url The url to get from @param string id [optional] The id of the resource to get

post function [url, data] - POST rest request @param string url The url to get from @param string data [optional] The data to send in to the post request

put function [url, data] - PUT rest request @param string url The url to get from @param string data The data to send in to the put request

delete function [url, id] - DELETE rest request @param string url The url to get from @param string id The id of the resource to delete

Returns promise...

docs to be finished soon!

About

A nice simple way to make rest calls to an API back end via AJAX

Resources

Stars

Watchers

Forks

Packages

No packages published