Questions tagged [zend-rest]
46 questions
0
votes
1 answer
Using sub classes with Zend_Rest_Server
Zend_Rest_Server and Zend_Rest_Client is pathetically under-documented, so I keep running into these mind numbingly irritating problems.
So, in order to streamline my API methods I would invoke Zend_Rest_Server() and then set the server class to…

Sandman
- 2,323
- 5
- 28
- 34
0
votes
1 answer
Zend Rest Route with hierarchy
Currently I have a REST route working for an Event controller (/event). I would like to handle Event SignUps in an EventSignUp controller, and map this controller to a /event/signups route.
The Zend Framework documentation states that the URL…

Jan-Henk
- 4,864
- 1
- 24
- 38
0
votes
1 answer
How to call the Lithium Forum API from Zend_Rest_Client
I'm trying to access a Lithium Forum Rest API using Zend_Rest_Client. The API is described here:
http://cl.ly/3N0M2D0k0H3L0Y103Q3R
The API docs give example calls such as e.g. /boards/id/experimentations/messages/id/938
How can I replicate this call…

codecowboy
- 9,835
- 18
- 79
- 134
0
votes
1 answer
Change default REST response to be only XML in Zend
I've worked on this code base and it responds with html when i access a site www.site.com/version/
However, If i access www.site.com/version?format=xml, it displays output in xml.
How can I change the Zend code to ONLY output in XML irrespective of…

siliconpi
- 8,105
- 18
- 69
- 107
0
votes
1 answer
Mutiple ids on Rest Router / Zend?
I think I have the same issue as this guy - http://framework.zend.com/issues/browse/ZF-9385?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel
"If I call something like this
/mod/con/123/abc
on a RESTful Controller I would…

siliconpi
- 8,105
- 18
- 69
- 107
0
votes
1 answer
How to tell API version from Zend routing
I recently picked up a client's old project. It was originally developed using Zend framework, which is a new one to me. I'm trying to modify the correct file but they have three versions of the API.
in the module.config they have the route…

Ryan H
- 547
- 1
- 6
- 18
0
votes
0 answers
ZF2 client to Salesforce REST API
My system should verify user's type during registering process. The verification is done with data from Salesforce. I created Salesforce REST API. I wondering how should I create ZF2 client to consume Salesforce REST API ? Should it be done as a zf2…

vlr
- 780
- 4
- 16
- 33
0
votes
0 answers
create($data) in zend framework 2 does not receive anything
I was applying a tutorial about creating a restful application using ZF2 rest api.
I faced a weird problem, all of the rest action work perfectly except create($data)
public function create($data)
{
$data['id'] = 0;
$form = new…

Mohd Alomar
- 953
- 1
- 13
- 30
0
votes
3 answers
Zend Framework 2 REST API : want to call get() instead of getList()
I am building RESTful API in Zend Framework 2. My route is article/person. I know that if id is not passed in url then it will call getList() method, not get().
In my case, I don't pass id as a get or post parameter but I pass it in HTTP header. As…

Geek
- 8,280
- 17
- 73
- 137
0
votes
1 answer
Using Zend_Rest_Controller for Web service in Zend Framework
When I extend a class from Zend_Rest_Controller , the 5 abstract method is implemented (index , get , put , delete , post ) , Which is used for CRUD .
my project structure is
-application
- config
- controllers // used for our web…

KJA
- 743
- 3
- 9
- 21
0
votes
1 answer
Zend Server CE installation
I've so far been unable to find a working answer for this... And, let me say, I'm brand new to Zend/MVC.
I've installed Zend Server CE on CentOS, running Apache. I'm able to use the Zend GUI interface (with the options like "Monitor, Applications,…
0
votes
2 answers
Restful API Zend Framework 2
I've already figured out how to make a simple resource reachable by AbstractRestfulController. Example:
localhost/products -> list
localhost/products/1 -> special product
Is there a way to nest resources? If so, how would you do that?…

FlorianX
- 221
- 1
- 3
- 7
0
votes
1 answer
POST params are empty in Zend_Rest_Controller
I'm using Zend_Rest_Controller to implement a RESTful API.
The GET action works fine, for example when I make the /user/id/1 request the :id parameter is present when I use $request->getParams().
However, when I make a POST request to /user, the…

Simon Robb
- 1,668
- 1
- 14
- 25
0
votes
1 answer
Need to Implement Zend_Rest_Client for the following curl method
I usually use curl to call rest api's like this
$user_data = array("userName" => "myuser@mydomain.com" ,"password" => "mydomain123" );
$data = json_encode($user_data);
$headers = array('Accept: application/json', 'Content-Type:…

Aravind.HU
- 9,194
- 5
- 38
- 50
0
votes
1 answer
Does Zend_Rest_Client support traditional object API work e.g. PUT an object, GET and object, POST an object
I need to know if we can use Zend Framework to power a REST API?
Does Zend_Rest_Client support traditional object API work e.g.
PUT an object, GET and object, POST an object
Most REST API's I've seen have mostly been oriented around object…

Ajmal
- 1