Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Apigility GET doesn't list items #110

Open
alessandrogarcez opened this issue Aug 12, 2015 · 4 comments
Open

Apigility GET doesn't list items #110

alessandrogarcez opened this issue Aug 12, 2015 · 4 comments

Comments

@alessandrogarcez
Copy link

I made a simple service using "db-connected" and it was created nicely.

But when I make a simple GET request to list all of my users, the response is 200 and anything appear in response. But when I make a GET informing an ID it works fine. POST and DELETE requests are working fine too.

@alessandrogarcez
Copy link
Author

I looked for a solution or a explanation why it is happening, but I didn't find anything.
I also opened a question in stack overflow...
http://stackoverflow.com/questions/31949299/apigility-get-doesnt-work

@alessandrogarcez
Copy link
Author

The "select" query is been executed in database because I'm got it in logs of mysql but the code it seems always null.
If I run the query in my client database, I get the result correctly.

@alessandrogarcez
Copy link
Author

It happens because I didn't set the driver option DO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES UTF8" and I had some words with accent. But the problem is that any error is displayed. I think it should throw some exception and not success (200) without any item in body of response.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-skeleton; a new issue has been opened at laminas-api-tools/api-tools-skeleton#17.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants