# \#apigility

**URL:** https://discourse.laminas.dev/tag/apigility/6.md

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

---

## [Comparison between api-tools and Dotkernel API](https://discourse.laminas.dev/t/comparison-between-api-tools-and-dotkernel-api/3694)

<div class="topic-metadata">

**Author:** [@arhimede](https://discourse.laminas.dev/u/arhimede)\
**Replies:** 14\
**Last updated:** [May 24, 2024, 8:30pm UTC](https://discourse.laminas.dev/t/comparison-between-api-tools-and-dotkernel-api/3694 "2024-05-24T20:30:48Z")

</div>

We published the first document related to transition from api-tools to dotkernel api, the comparison between them. If we missed some criteria for comparison, we are happy to extend this document. The entire dotkernel …

---

## [Composer autoloading inside apigility](https://discourse.laminas.dev/t/composer-autoloading-inside-apigility/1107)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 7\
**Last updated:** [January 4, 2024, 8:45am UTC](https://discourse.laminas.dev/t/composer-autoloading-inside-apigility/1107 "2024-01-04T08:45:31Z")

</div>

When we created “New API” (for example, “Status”) via admin panel of apigility it is created new module inside “module” directory of our project. There is “public function getAutoloaderConfig()…” inside new module “Statu…

---

## [Migrate Apigility to laminas api tools](https://discourse.laminas.dev/t/migrate-apigility-to-laminas-api-tools/3425)

<div class="topic-metadata">

**Author:** [@ramasaml](https://discourse.laminas.dev/u/ramasaml)\
**Replies:** 0\
**Last updated:** [August 2, 2023, 5:07pm UTC](https://discourse.laminas.dev/t/migrate-apigility-to-laminas-api-tools/3425 "2023-08-02T17:07:21Z")

</div>

I already have apigility code. But now that the laminas-api-tools version has been updated, how do I move apigility to the laminas-api tool? I’m a beginner; please share your knowledge and any specific migration advice. …

---

## [Doctrine in Apigility Book](https://discourse.laminas.dev/t/doctrine-in-apigility-book/391)

<div class="topic-metadata">

**Author:** [@TomHAnderson](https://discourse.laminas.dev/u/TomHAnderson)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 8:31am UTC](https://discourse.laminas.dev/t/doctrine-in-apigility-book/391 "2022-05-03T08:31:10Z")

</div>

The Doctrine in Apigility book has been released! Without a design to pattern an implementation many have found it hard to create a Doctrine enabled Apigility API. This book offers a good design. Doctrine in Apigility…

---

## [How to add/modify collection entity fields in apigility + doctrine + ZF3 MVC?](https://discourse.laminas.dev/t/how-to-add-modify-collection-entity-fields-in-apigility-doctrine-zf3-mvc/1898)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 6:43am UTC](https://discourse.laminas.dev/t/how-to-add-modify-collection-entity-fields-in-apigility-doctrine-zf3-mvc/1898 "2020-10-19T06:43:43Z")

</div>

I have “image” table. I use apigility to get collection of items from image table. I use REST GET call for this. I have this in my ItemMapper.php file: public function fetchAll($params) { $query = $this-\>itemManag…

---

## [How to use container in Resource class](https://discourse.laminas.dev/t/how-to-use-container-in-resource-class/1566)

<div class="topic-metadata">

**Author:** [@Chamsdin\_Bouagga](https://discourse.laminas.dev/u/Chamsdin_Bouagga)\
**Replies:** 1\
**Last updated:** [April 28, 2020, 11:23pm UTC](https://discourse.laminas.dev/t/how-to-use-container-in-resource-class/1566 "2020-04-28T23:23:08Z")

</div>

i want to know how i can call the container correctly and use to get adapter created by apgility

---

## [When I set 'deny\_by\_default' ('zf-mvc-auth' component) to true, I get 403 "Forbidden" on all pages of the site](https://discourse.laminas.dev/t/when-i-set-deny-by-default-zf-mvc-auth-component-to-true-i-get-403-forbidden-on-all-pages-of-the-site/1145)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 10\
**Last updated:** [March 10, 2020, 2:01pm UTC](https://discourse.laminas.dev/t/when-i-set-deny-by-default-zf-mvc-auth-component-to-true-i-get-403-forbidden-on-all-pages-of-the-site/1145 "2020-03-10T14:01:53Z")

</div>

I am trying to use oauth2 with apigility within zf3 project too. At current moment I have faced with next situation: when I am setting ‘deny\_by\_default’ to true, I get 403 “Forbiddeb” on all pages of the site even at non…

---

## [Questions on the naming of modules for laminas, mezzio, api-tools](https://discourse.laminas.dev/t/questions-on-the-naming-of-modules-for-laminas-mezzio-api-tools/1309)

<div class="topic-metadata">

**Author:** [@TomHAnderson](https://discourse.laminas.dev/u/TomHAnderson)\
**Replies:** 3\
**Last updated:** [February 6, 2020, 12:53pm UTC](https://discourse.laminas.dev/t/questions-on-the-naming-of-modules-for-laminas-mezzio-api-tools/1309 "2020-02-06T12:53:03Z")

</div>

I have many modules which I have named with a prefix of zf- such as api-skeletons/zf-oauth2-doctrine. I’ve often wondered what the right way to name modules is. With Laminas now renaming all the modules I think it’s a …

---

## [Can I use ACL and RBAC together? Ho to do it in the right way?](https://discourse.laminas.dev/t/can-i-use-acl-and-rbac-together-ho-to-do-it-in-the-right-way/1157)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 6\
**Last updated:** [September 12, 2019, 4:22pm UTC](https://discourse.laminas.dev/t/can-i-use-acl-and-rbac-together-ho-to-do-it-in-the-right-way/1157 "2019-09-12T16:22:39Z")

</div>

I am using zf3 mvc and apigility together. I am trying to make working apigility with oauth2 (also separately for admin panel which has it own router path “admin”). Can I put ACL and RBAC together also within apigility? …

---

## [How to add authentication adapter to controller?](https://discourse.laminas.dev/t/how-to-add-authentication-adapter-to-controller/1179)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 0\
**Last updated:** [September 6, 2019, 10:26am UTC](https://discourse.laminas.dev/t/how-to-add-authentication-adapter-to-controller/1179 "2019-09-06T10:26:11Z")

</div>

This works: return \[ 'zf-mvc-auth' =\> \[ 'authentication' =\> \[ 'map' =\> \[ 'Admin\\\\MyModule\\\\Controller' =\> 'session', \], but it is applicable to all controllers. It me…

---

## [Zf-oauth2: I've got access\_token. What's next?](https://discourse.laminas.dev/t/zf-oauth2-ive-got-access-token-whats-next/1176)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 3\
**Last updated:** [September 5, 2019, 11:54am UTC](https://discourse.laminas.dev/t/zf-oauth2-ive-got-access-token-whats-next/1176 "2019-09-05T11:54:35Z")

</div>

Earlier, I’ve thought that zf-oauth2 will do everything for me. I’ve thought there is some magic in this module which I don’t see. That is why I was stuck for a long time with apigility and oauth2. I have login page for…

---

## [Trouble with "User Differentiation" article](https://discourse.laminas.dev/t/trouble-with-user-differentiation-article/1171)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 2\
**Last updated:** [August 30, 2019, 2:29pm UTC](https://discourse.laminas.dev/t/trouble-with-user-differentiation-article/1171 "2019-08-30T14:29:31Z")

</div>

I have created a project with zf3 mvc and apigility. I have admin modules which is located within ‘administrator/module’ folder (the same folder as default ‘module’ folder which I have too). I want to organize all my aja…

---

## [How to override zf3 config based on router?](https://discourse.laminas.dev/t/how-to-override-zf3-config-based-on-router/1148)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 0\
**Last updated:** [August 9, 2019, 1:45pm UTC](https://discourse.laminas.dev/t/how-to-override-zf3-config-based-on-router/1148 "2019-08-09T13:45:34Z")

</div>

I have this config: 'zf-mvc-auth' =\> \[ 'authentication' =\> \[ 'map' =\> \[ 'ZF\\\\OAuth2' =\> 'session', \], 'adapters' =\> \[ 'session' =\> \[ 'adapter' =\> 'Appl…

---

## [Empty collection arrays from doctrine within apigility fetchAll($params) resource method](https://discourse.laminas.dev/t/empty-collection-arrays-from-doctrine-within-apigility-fetchall-params-resource-method/1121)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 9\
**Last updated:** [July 30, 2019, 4:38pm UTC](https://discourse.laminas.dev/t/empty-collection-arrays-from-doctrine-within-apigility-fetchall-params-resource-method/1121 "2019-07-30T16:38:01Z")

</div>

Inside my class ItemResource I have method which fetch rows from db with doctrine: public function fetchAll($params) { $query = $this-\>entityManager-\>getRepository(UserItem::class)-\>getItems(); $adapter = n…

---

## [Can somebody tell me few words about apigility?](https://discourse.laminas.dev/t/can-somebody-tell-me-few-words-about-apigility/1104)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 12\
**Last updated:** [July 29, 2019, 11:02am UTC](https://discourse.laminas.dev/t/can-somebody-tell-me-few-words-about-apigility/1104 "2019-07-29T11:02:23Z")

</div>

Can somebody tell me few words about apigility ( https://github.com/zfcampus/zf-apigility ) ? Can I use it with zf3 with my current zend-mvc project (or with ZendSkeletonApplication ( https://github.com/zendframework/Zen…

---

## [What benefits could I get if I used zfcampus/zf-apigility-doctrine within apigility?](https://discourse.laminas.dev/t/what-benefits-could-i-get-if-i-used-zfcampus-zf-apigility-doctrine-within-apigility/1117)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 3\
**Last updated:** [July 17, 2019, 1:24am UTC](https://discourse.laminas.dev/t/what-benefits-could-i-get-if-i-used-zfcampus-zf-apigility-doctrine-within-apigility/1117 "2019-07-17T01:24:24Z")

</div>

I want to integrate apigility into zend framework 3 mvc aplication based on zendframework/ZendSkeletonApplication which use Doctrine as was shown in olegkrivtsov’s book. Why should I use zfcampus/zf-apigility-doctrine fo…

---

## [How to use apigility without admin ui?](https://discourse.laminas.dev/t/how-to-use-apigility-without-admin-ui/1106)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 9:19am UTC](https://discourse.laminas.dev/t/how-to-use-apigility-without-admin-ui/1106 "2019-07-16T09:19:01Z")

</div>

How to use apigility without generating files within admin panel? I want to know what files and where should I create to use REST or RPC API. Where can I find such documentation? I am reading apigility documentation but …

---

## [Uri versioning within apigility: "/admin/api/v1/status\[:/status\_id\]](https://discourse.laminas.dev/t/uri-versioning-within-apigility-admin-api-v1-status-status-id/1119)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 0\
**Last updated:** [July 16, 2019, 8:59am UTC](https://discourse.laminas.dev/t/uri-versioning-within-apigility-admin-api-v1-status-status-id/1119 "2019-07-16T08:59:22Z")

</div>

How can I create such versioning with apigility: “/admin/api/v1/status\[:/status\_id\]” ? It looks like with zfcampus/zf-versioning I can create only versioning in this way: “/v1/admin/api/status\[:/status\_id\]” .

---

## [Create API with Expressive?](https://discourse.laminas.dev/t/create-api-with-expressive/411)

<div class="topic-metadata">

**Author:** [@MichaelB](https://discourse.laminas.dev/u/MichaelB)\
**Replies:** 10\
**Last updated:** [March 27, 2018, 3:53pm UTC](https://discourse.laminas.dev/t/create-api-with-expressive/411 "2018-03-27T15:53:55Z")

</div>

Hi all, I would like to use Expressive for my new REST API services. I tested Apigility (1.4.1) and is a really good product but it miss “in my case” some default features like ACL or RBAC by example (i know we can add …

---

## [RFC: HAL support for Apigility on Expressive](https://discourse.laminas.dev/t/rfc-hal-support-for-apigility-on-expressive/139)

<div class="topic-metadata">

**Author:** [@matthew](https://discourse.laminas.dev/u/matthew)\
**Replies:** 5\
**Last updated:** [July 13, 2017, 4:23pm UTC](https://discourse.laminas.dev/t/rfc-hal-support-for-apigility-on-expressive/139 "2017-07-13T16:23:21Z")

</div>

Background Hypertext Application Language, or HAL, is defined in two IETF proposals, JSON Hypertext Application Language and XML Hypertext Application Language. The basic ideas behind each are: Provide generic, exte…
