I like to have messages that are different than the standard returned by RestException class.
For example HTTP code 400 with custom message:
return array ('code'=>400, 'result'=>"Fail", 'reason'=>"Bad meta tag: $meta");
Is this possible with the…
Where and how should I define allowedMimeTypes and other properties for UploadFormat with Restler
This is related to Handling file uploads with Restler and item 2 in the answer section
I'm experiencing problems with versioning and authentication class in Restler version 3.0.0rc4.
In the index.php file the authentication class and a User class are added like this:
Defaults::$useUrlBasedVersioning =…
I am trying desperately to get swagger-codegen working on my Macbook Pro with OS X Mountain Lion.
Upgraded Java to 1.7.
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08,…
I downloaded Restler3 a few days ago and while tinkering with it, I decided it was a good idea to move the 'vendor' folder outside site root.
At first everything seemed fine, but then I noticed that for example the /math/sum/* example didn't work…
I have problem in Restler2 with passing parameters to function. In Restler3 you can pass parameters whatever you want like in this function
function sum()
{
return array_sum(func_get_args());
}
So for example url…
I have been searching for an example of creating manual/custom routes in Restler 3 to achieve a URL like this.
http://domain.com/api/v1/solution/categories/{category-id}/folders/{folder-id}/articles/{article-id}.json
I would like everything handled…
I was having trouble getting the autoload working with Restler 3 RC4 and Amazon Web Services (AWS). Arul provided a fix which worked beautifully.
$loader = require_once…
Lets say insted of just output:
{
"error":
{
"code": 500,
"message": "Some internal error"
}
}
I would like to output:
{
"error":
{
"code": 500,
"message": "Some internal error",
"error_code" : 1050
}
}
Also is…
I am new to restler3.0. I am trying to run sample examples given in the public folder. I got strucked when trying to run the routing example. I am trying to call the api/method/{param1}, in this method one more param is there and that is in array…
I want to create a API to access information about library patrons and books in the MySQL database we useIt is based of the CRUD example with everything but GET removed
So I have 4 files:
db_pdo_mysql.php which holds the functions
index.php calls…
I'm having a hard time getting Restler to work properly with nginx.
In the first place I couldn't even get Math.php/add to work (returned 404).
But I managed this way (I've seen a lot of people struggle with this):
root …
it looks like it is not possible to have array of dates as a parameter, like:
@param array $dates Dates array {@type date} {@from body}
Is there any way to make Restler to validate input of array of dates, for example:
{
"dates": ["2013-01-01",…
I've got a problem with new Restler3 RC4: My API list in resource.json is just empty:
{
"apiVersion": "1",
"swaggerVersion": "1.1",
"basePath": "xxxxxx/API/index.php",
"apis":
[
]
}
But by uncommenting the…