Questions tagged [restler]

A micro framework that can expose any PHP class and its methods as Pragmatic and/or RESTful API.

Restler is a simple multi-format Web API Server written in PHP. It is open sourced under LGPL license.

258 questions
0
votes
1 answer

Losing the ".json" in the API Explorer documentation

First let me say that the new API Explorer in Restler is great. Very happy about its addition. Now, in typical fashion, let me complain about something that isn't working for me ... The fact that Restler can return results in multiple formats is a…
ken
  • 8,763
  • 11
  • 72
  • 133
0
votes
1 answer

Complex service structure

I really like Restler on first blush but I wanted to make sure I could implement my requirements and my first attempt fell short but that's likely due to me not understanding it fully. What I'd like to be able to do is have a set of families of…
ken
  • 8,763
  • 11
  • 72
  • 133
0
votes
2 answers

RewriteCond: unknown flag 'QSA'

When configuring Restler it suggests creating the following re-write rule: DirectoryIndex index.php RewriteEngine On RewriteRule ^$ index.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond…
ken
  • 8,763
  • 11
  • 72
  • 133
0
votes
1 answer

restler multiple routes

Im having problems with multiple routs, some of them not working. /** * * @url GET /fetch * @url GET /fetch/lazyload/:lazy * @url GET /fetch/:id/ * @url GET /fetch/:id/lazyload/:lazy * @url GET /fetch/start/:offset/limit/:limit * @url GET…
Dr Casper Black
  • 7,350
  • 1
  • 26
  • 33
0
votes
1 answer

restler returning all escaped doublequote chars?

K, so I have something like this. I'm trying to figure out how to not escape the double quotes. I think this is restler doing it...but I haven't been able to find docs or hints in the restler code about what I need to change. If I do a…
Bill Ryder
  • 133
  • 1
  • 8
0
votes
1 answer

Restler Returns Always Not Found With Or Without Index.php

I am currently writing an iOS App that uses RestKit to talk to an Api I have written in restler which resides at Api.guessthedistance.com. At the moment none of the examples in Restler work along side my API they both just return a 404 error. I've…
James Campbell
  • 3,511
  • 4
  • 33
  • 50
0
votes
1 answer

Luracast restler -- routes.php cache

I encountered a problem with routes cache of Luracast restler. For instance, i have 2 urls: /api/service/resale/getmapinfo /api/service/precon/getmapinfo They work with 2 classes correspondingly: ResaleService PreconService When I reach the…
yuriscom
  • 550
  • 3
  • 17
0
votes
1 answer

Restler always returning error 404 not found

I can't seem to figure this one out. The class: class Assets { function getOne($id) { $asset = DBO_Asset::getOneByPublicId($id); return $asset->id; } } The index.php: require_once 'restler/restler.php'; require_once…
cj5
  • 785
  • 3
  • 12
  • 34
0
votes
1 answer

Restler mapping protected methods

I am using Restler 2.1.5 and i have a class with the index method protected. protected function index($id){ //do something } I added new protected method but not able to call that method. protected function method(){ //do stuff } When i call…
Filipe Batista
  • 1,862
  • 2
  • 24
  • 39
0
votes
2 answers

REST PHP API : Restler OR APIFY

What should be the best choice among REST API, Restler OR Apify ? Which is more secure and more scalable ?
0
votes
1 answer

Restler : make a get request with security key in post parameter

I would like to call a rest function of my api with the GET protocol but I didn't succeed to put the security key of restler as a post parameter. example: /index.php/myrestapi/method.json?name=test post field : Array('key'=>'mykey') $session =…
kevins
  • 46
  • 5
0
votes
1 answer

Restler custom routes

We're exploring the Restler framework. What we need is a custom route like: [host]/:sessionid/{class}/{method}?param1=x¶m2=y For example, the Settings method in the Game class:
0
votes
1 answer

LURACAST Restler framework - Issue in handling european characters

I am using restler PHP API to host a REST service. I am having a problem with handling some European characters, otherwise it is working fine. For example I have the string "Český rozhlas 1 - Radiožurnál" in a MySQL database. When the restler API…
jpsasi
  • 1,905
  • 2
  • 18
  • 29
0
votes
1 answer

Luracast Restler is sending 'text/html' instead of JSON

I have a REST web service implemented with LuraCast Restler API. It has been working fine until now. Suddenly I am not getting JSON data in response of my requests to the service no more. X-Debug always return the following notices with every…
David Casillas
  • 1,801
  • 1
  • 29
  • 57
0
votes
2 answers

Using RESTler, can I name a method something different than post() or postSomething() when it must accept arguments via an HTTP post?

I'm considering using Lucarast RESTler (http://luracast.com/products/restler/) My PHP class has a method called 'solve' and it must accept an argument via POST class Solver { function solve( $request_data ) { ... } If I simply name the…
JulianG
  • 4,265
  • 5
  • 23
  • 24
1 2 3
17
18