i googled for an hour, but maybe my google-fu is too weak, I could not find a solution.
I want to create an application that requests a service through JSON requests (all data and backend / business logic are stored in the service). With simple PHP, this is quite simple, since I just make a curl request, json_decode the result and get what I need. This is already working well.
The request may look like this:
Call http://service-host/userlistwith body:
{"logintoken": "123456-1234-5678-901234"}
Get the result:
{
"status": "Ok",
"userlist":[
{"name": "foo", "id": 1},
{"name": "bar", "id": 2}
]
}
Now we want to get this in the Zend Framework, as this is a hobby project, and we want to learn about Zend. The problem is that all the information I could find uses the database.
Zend, ? , ?