Just updated my restler 3 to release candidate 4 to try oAuth2 implementation. I've a restler 3 server and client, the server should offer an oAuth2.0 server and the client should implement oAuth2.0. But the oAuth2.0 client example index.php page…
I want to get a URI, parse it, and then get another URI based on the parsed data. Using restler, I thought I could do the parsing and the second get call from the .on('complete',...) function of the first get call. It doesn't seem to work as I…
I've installed restler using composer. I've set up a virtual host for it. I'm able to go to my localhost in my browser and it shows some informational pages but as soon as I try one of the APIs I get a server 500 error.
My PHP logs say:
Function…
Is there a way to demonstrate file uploads using Restler via Swagger UI?
I like to be able to do something like:
function post() {
return $_FILES;
}
And expect to see the $_FILES array content displayed as a result of swagger ajax call.
Is…
I'm trying to use Restler 3 API Explorer and i'm having some problems. Even though i put "@param int $n1" in the comment, in the API Explorer it shows the parameters as string. Besides that, the API Explorer only shows the "Response Information"…
I am implementing API calls that are used to delete data in 2 ways via DELETE and GET requests:
@url DELETE /{id}
@url GET /delete/{id}
Is there a way to make the Swagger to color in red the GET request too?
They are used for same purpose - to…
I have a problem.
How work path in Restler 3?
class eventos {
function index($desde=0, $hasta=0) {}
function get($num, $p2='optional') {
if($p2 != 'attend'){}
else{}
}
function post($num, $p2, $request_data = null){
…
I really don't understand what I should do to make a DELETE request.
I want to use JSON as in/output only, so also a DELETE request should receive JSON.
But that doesn't make the goal:
public function delete($request_data = NULL)
$request_data is…
I've been at this for a couple days and can't seem to get this to work. My issue is that I'm using Restler (version 3) for an API and Restangular on my front end and I'm getting the following error:
Error: can't convert undefined to object…
I'm playing around with Restler3 (really awesome!) and noticed a problem.
So, the index() function should list all rows of a table, that's correct, right?
I'm doing it that way: index() lists all rows of a table. But the client doesn't support to…
I'm trying to get the HTML of a website using restler. But when I try to get the relevant part of result, I always get the error,
"TypeError: Cannot read property 'rawEncoded' of undefined".
'rawEncoded' sometimes is 'res'. I think it changes…
I'm sending the following json: {"name":"New event"}
to a PATCH handler: function patch($id, $request_data = NULL)
but am getting the following warning: Warning: strlen() expects parameter 1 to be string, array given in…
Trying to figure out how to use SwiftMailer inside Restler. I think I may just be including it incorrectly. Per the SwiftMailer documentation, all I need to do is include a single file via require_once and their autoloader does all the magic, but I…
My Goal : I want to make certificate and download it .
I have the following scenario :
in outlines :
request : browser ---> PHP page ---> PHP Rest web service ---> bash
response : bash ---> PHP Rest web service ---> PHP page ---> browser
in…
I am having an issue with restler, although I registered the following formats:
$r->setSupportedFormats('JsonFormat','XmlFormat','YamlFormat','PlistFormat','AmfFormat');
formats other than JSON or xml are not routable using the suffix,…