# \#zf-api-problem

**URL:** https://discourse.laminas.dev/tag/zf-api-problem/1.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [How to return paginated resource response for rest api service in zf2](https://discourse.laminas.dev/t/how-to-return-paginated-resource-response-for-rest-api-service-in-zf2/2661)

<div class="topic-metadata">

**Author:** [@Shalaka\_Deshan](https://discourse.laminas.dev/u/Shalaka_Deshan)\
**Replies:** 1\
**Last updated:** [December 21, 2021, 11:05am UTC](https://discourse.laminas.dev/t/how-to-return-paginated-resource-response-for-rest-api-service-in-zf2/2661 "2021-12-21T11:05:14Z")

</div>

How to generate paginated responses for rest API via getList method.

---

## [How can I return an ApiProblem when an error occurs pulling a controller from the container?](https://discourse.laminas.dev/t/how-can-i-return-an-apiproblem-when-an-error-occurs-pulling-a-controller-from-the-container/36)

<div class="topic-metadata">

**Author:** [@matthew](https://discourse.laminas.dev/u/matthew)\
**Replies:** 4\
**Last updated:** [September 7, 2019, 6:03am UTC](https://discourse.laminas.dev/t/how-can-i-return-an-apiproblem-when-an-error-occurs-pulling-a-controller-from-the-container/36 "2019-09-07T06:03:22Z")

</div>

Sometimes an error occurs when pulling a controller (or one of its dependencies) from the container. In such cases, an ApiProblem is not returned; instead, the default error page for the application is returned, which ca…

---

## [How to use apigility project with mongodb database](https://discourse.laminas.dev/t/how-to-use-apigility-project-with-mongodb-database/366)

<div class="topic-metadata">

**Author:** [@sajit\_kk](https://discourse.laminas.dev/u/sajit_kk)\
**Replies:** 1\
**Last updated:** [December 27, 2017, 11:05pm UTC](https://discourse.laminas.dev/t/how-to-use-apigility-project-with-mongodb-database/366 "2017-12-27T23:05:45Z")

</div>

I am creating a ZF3 API which will use mongodb database but I am not able to connect my project with mongodb, where should i keep the configuration
