I'm using Restler 3.0.0-RC6 and I'm confused on versioning. I have a v1 version (in a namespace) and now I need to make a breaking API change, so I want to create a v2 dir/namespace. However, I only need a couple of the API methods to change. How…
I have a basic CRUD endpoint, and I want to be able to search by arbitrary fields in my database. Is there a way to allow this without specifying every possible filter in the method signature?
I'm using the Restler framework to write my API, and it uses swagger to document things. When I define my method I'm having two issues with the resulting documentation. One is that the description of the parameters is not being displayed in…
I'm going through the tutorial examples of Restler here: http://restler3.luracast.com/examples/_003_multiformat/readme.html
While it states that:
First format specified in Restler::setSupportedFormats is used as the
default format when client…
i'm trying to run restler on windows, in combination with Xampp.
so i finnaly finished to unzip the files with composer,
my htdocs directory looks like this, where the folder API is my restler directory: c:\xampp\htdocs\api\ * here are the restler…
In one of my get methods is it possible to specify a specific Content-Type and Content-Disposition? After getting my data back I'm doing this:
return Scope::get('CsvFormat')->encode($data);
and so the data returned is in a CSV format. Now I want…
I have two authentication classes defined.
API Keys (APIKeyAuth)
OAUTH2 (OAUTH2Server)
In my index.php I have the following defined
$r = new Restler();
$r->addAuthenticationClass('APIKeyAuth');
$r->addAuthenticationClass('OAUTH2Server');
I…
Is there currently any means of capturing an incoming request and response, and logging that? I see that there are 'preCall' and 'postCall' methods, however, some of my API methods are not strictly named by HTTP verbs.
For example, in my 'Players'…
In my REST API I have Work associated with an Order, so using Restler (3.0.0-RC6) I created this method:
class Orders {
/**
* Get completed work for order
*
* @param int $id The SQL identifier of the order
*
* @return…
I have the following folder structure.
src/
|- index.php
test/
vendor/
composer.json
composer.lock
When i want to deploy my code, I realize that i have to map the src/ directory to document root since it contains the index.php file (which btw…
I have a problem with Restler: I'm creating my own API to access my data from differente website. When I try to send a POST request to my API, it says:
{
error: {
code: 405
message: "Method Not Allowed"
}
debug: {
…
I am trying to figure out the API versioning using Vendor MIME in Restler 3.0.
Now the issue which I am facing is that I am not able figure out how to explicitly use the versions.
I used the REST Console at my local MAC machine.
I provided Accept…
I'm the author of Restler framework, now trying to use properly named tags for package versioning.
I'm using the following composer.json and named my tags as advised in https://getcomposer.org/doc/02-libraries.md#tags which you can see at…