# API Tools

**URL:** https://discourse.laminas.dev/c/questions/api-tools/8.md?page=1

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

**Page:** 2

---

## [Api-Tools Skeleton has no mail? ](https://discourse.laminas.dev/t/api-tools-skeleton-has-no-mail/2431)

<div class="topic-metadata">

**Author:** [@leonardocamposprado](https://discourse.laminas.dev/u/leonardocamposprado)\
**Replies:** 1\
**Last updated:** [December 28, 2021, 6:09pm UTC](https://discourse.laminas.dev/t/api-tools-skeleton-has-no-mail/2431 "2021-12-28T18:09:07Z")

</div>

In Apigility has Zend\\Mail and Zend\\Mime in Api-Tools Skeleton no? How do I send email through Api-Tools?

---

## [Empty embedded items in RPC Service using HAL response](https://discourse.laminas.dev/t/empty-embedded-items-in-rpc-service-using-hal-response/2649)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 4\
**Last updated:** [December 22, 2021, 8:18am UTC](https://discourse.laminas.dev/t/empty-embedded-items-in-rpc-service-using-hal-response/2649 "2021-12-22T08:18:06Z")

</div>

To share I am using RPC service and I returning HAL response. Following listCustomerOrdersAction() is the action method from Controller. public function listCustomerOrdersAction() { $customerId = (int)$this-\>…

---

## [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.

---

## [Getting error returning HAL From An RPC Service](https://discourse.laminas.dev/t/getting-error-returning-hal-from-an-rpc-service/2636)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 9\
**Last updated:** [December 9, 2021, 2:38pm UTC](https://discourse.laminas.dev/t/getting-error-returning-hal-from-an-rpc-service/2636 "2021-12-09T14:38:56Z")

</div>

While returning HAL From an RPC Service I get the following error. What am I missing here. Response is as pasted below: { "status": 500, "title": "Unexpected error", "describedBy": "http://www.w3.org/Protoc…

---

## [In what format I should return the response from RPC Service in Laminas API Tools implementation](https://discourse.laminas.dev/t/in-what-format-i-should-return-the-response-from-rpc-service-in-laminas-api-tools-implementation/2633)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 3\
**Last updated:** [December 3, 2021, 6:22pm UTC](https://discourse.laminas.dev/t/in-what-format-i-should-return-the-response-from-rpc-service-in-laminas-api-tools-implementation/2633 "2021-12-03T18:22:46Z")

</div>

I plan to implement an RPC Service in API Tools environment that uses a number of entities. Following function returns the number ($offset) of records from (starting record). //Service public function findCustomerOrder…

---

## [Getting parameter from URL for REST Service](https://discourse.laminas.dev/t/getting-parameter-from-url-for-rest-service/2624)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 3\
**Last updated:** [December 3, 2021, 11:03am UTC](https://discourse.laminas.dev/t/getting-parameter-from-url-for-rest-service/2624 "2021-12-03T11:03:57Z")

</div>

I am using API Tools for developing REST APIs. My URL is my-website.com/v1/customers/1/orders I want to display orders for the customer with customer\_id = 1. My question is: -in general how do I implement this funct…

---

## [Guidance creating multi-tenant api](https://discourse.laminas.dev/t/guidance-creating-multi-tenant-api/2609)

<div class="topic-metadata">

**Author:** [@Kimball](https://discourse.laminas.dev/u/Kimball)\
**Replies:** 3\
**Last updated:** [November 25, 2021, 10:22am UTC](https://discourse.laminas.dev/t/guidance-creating-multi-tenant-api/2609 "2021-11-25T10:22:42Z")

</div>

I’m investigating multiple frameworks / approaches to building a new multi-tenant api to support our desktop software. Laminas API tools looks really promising, but I can’t find any examples in the documentation for how …

---

## [Getting 404 Error from Laminas API Tools](https://discourse.laminas.dev/t/getting-404-error-from-laminas-api-tools/2599)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 5\
**Last updated:** [November 18, 2021, 5:54pm UTC](https://discourse.laminas.dev/t/getting-404-error-from-laminas-api-tools/2599 "2021-11-18T17:54:31Z")

</div>

I am getting 404 Error Not Found with the text as below: The requested URL was not found on this server. The URL is mydomain.com/api-tools/ui I am using Laminas API Tools. Any pointers or ideas would help.

---

## [How to get REST web service to return record just added via POST](https://discourse.laminas.dev/t/how-to-get-rest-web-service-to-return-record-just-added-via-post/2587)

<div class="topic-metadata">

**Author:** [@dickdono](https://discourse.laminas.dev/u/dickdono)\
**Replies:** 5\
**Last updated:** [November 8, 2021, 5:51pm UTC](https://discourse.laminas.dev/t/how-to-get-rest-web-service-to-return-record-just-added-via-post/2587 "2021-11-08T17:51:45Z")

</div>

I have a REST web service in API Tools for CRUD of a database table (DB2 for i) where the (unique) key is an identity column called “order\_id”. The route looks like this: 'route' =\> '/sleep-order-header\[/:order\_id\]'…

---

## [Accessing the Db entity in the RPC Controller](https://discourse.laminas.dev/t/accessing-the-db-entity-in-the-rpc-controller/2592)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 0\
**Last updated:** [November 8, 2021, 12:25pm UTC](https://discourse.laminas.dev/t/accessing-the-db-entity-in-the-rpc-controller/2592 "2021-11-08T12:25:34Z")

</div>

My objective is to download a document for a given id. In this regard I get the id from the caller via route mydomain.com/v1/documents/download\[/:id\], search for the id in the db(for documents table), gets the file\_name …

---

## [Laminas API Tools - unable to create new API in Admi UI](https://discourse.laminas.dev/t/laminas-api-tools-unable-to-create-new-api-in-admi-ui/1418)

<div class="topic-metadata">

**Author:** [@divix](https://discourse.laminas.dev/u/divix)\
**Replies:** 12\
**Last updated:** [November 4, 2021, 8:34am UTC](https://discourse.laminas.dev/t/laminas-api-tools-unable-to-create-new-api-in-admi-ui/1418 "2021-11-04T08:34:56Z")

</div>

Anyone else is experiencing an error when creating new API tool when navigating to: \[url\]/api-tools/ui ? Currently I am getting: Fatal error: Uncaught Laminas\\ModuleManager\\Exception\\RuntimeException: Module (Applicati…

---

## [My road to success / Documentation](https://discourse.laminas.dev/t/my-road-to-success-documentation/2559)

<div class="topic-metadata">

**Author:** [@Laurent\_Chervet](https://discourse.laminas.dev/u/Laurent_Chervet)\
**Replies:** 0\
**Last updated:** [October 23, 2021, 1:52pm UTC](https://discourse.laminas.dev/t/my-road-to-success-documentation/2559 "2021-10-23T13:52:57Z")

</div>

Can say it enough, but this whole suite rocks! It rocked from day 1, for everything, but, and that’s maybe peresonal, the documentation. I had real issues finding simple stuff. Like, how do I return a response from a RES…

---

## [Build, deploy, not working](https://discourse.laminas.dev/t/build-deploy-not-working/2557)

<div class="topic-metadata">

**Author:** [@Laurent\_Chervet](https://discourse.laminas.dev/u/Laurent_Chervet)\
**Replies:** 2\
**Last updated:** [October 23, 2021, 3:32am UTC](https://discourse.laminas.dev/t/build-deploy-not-working/2557 "2021-10-23T03:32:04Z")

</div>

Hi! First off, hats down for this incredible tool! For what I have used it, on localhost, it’s incredible and so simple to build REST apis! My issue is… Everything works fine locally. I’m running Laminas on localhost:8…

---

## [Load configuration file from request call (header or subdomain)](https://discourse.laminas.dev/t/load-configuration-file-from-request-call-header-or-subdomain/2526)

<div class="topic-metadata">

**Author:** [@jpoitras](https://discourse.laminas.dev/u/jpoitras)\
**Replies:** 0\
**Last updated:** [September 29, 2021, 7:27pm UTC](https://discourse.laminas.dev/t/load-configuration-file-from-request-call-header-or-subdomain/2526 "2021-09-29T19:27:43Z")

</div>

Hello all, I have developed an API with Apigility + Oauth2 for a specific client needs and now he would like to resell the tool to others in his industry (white label). The api reside on a subdomain such as “api.thepro…

---

## [Custom validators with parameters](https://discourse.laminas.dev/t/custom-validators-with-parameters/2502)

<div class="topic-metadata">

**Author:** [@Admirau](https://discourse.laminas.dev/u/Admirau)\
**Replies:** 0\
**Last updated:** [September 15, 2021, 12:50pm UTC](https://discourse.laminas.dev/t/custom-validators-with-parameters/2502 "2021-09-15T12:50:18Z")

</div>

How can I add custom validators with parameters in API Tools GUI? I wrote a custom validator + factory. I have some setters+getters there. How can I configure this validator the way it would: show up in the list of …

---

## [API Tools Admin UI: Cannot create the API module](https://discourse.laminas.dev/t/api-tools-admin-ui-cannot-create-the-api-module/2474)

<div class="topic-metadata">

**Author:** [@helmi90](https://discourse.laminas.dev/u/helmi90)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 5:36pm UTC](https://discourse.laminas.dev/t/api-tools-admin-ui-cannot-create-the-api-module/2474 "2021-09-03T17:36:20Z")

</div>

Hey everybody! I built a Laminas MVC web app and have to add an API. After some reasearch, I reckoned that the Laminas API Tools UI should be the best way for this. I am working in a vagrant box with composer and manage…

---

## [API tools HAL Entity metadata map for multiple identifiers](https://discourse.laminas.dev/t/api-tools-hal-entity-metadata-map-for-multiple-identifiers/2486)

<div class="topic-metadata">

**Author:** [@vlx](https://discourse.laminas.dev/u/vlx)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 6:03pm UTC](https://discourse.laminas.dev/t/api-tools-hal-entity-metadata-map-for-multiple-identifiers/2486 "2021-09-02T18:03:26Z")

</div>

Please is there a way to configure metadata map with api tools hal so that it accepts two entity identifiers? I have endpoint in form of /api/sellers/\[:seller\_id\]/tickets\[/:ticket\_id\] I use Entity Ticket which as eniti…

---

## [I cannot create the API module, please check if already exists](https://discourse.laminas.dev/t/i-cannot-create-the-api-module-please-check-if-already-exists/2358)

<div class="topic-metadata">

**Author:** [@SaschaS](https://discourse.laminas.dev/u/SaschaS)\
**Replies:** 2\
**Last updated:** [August 30, 2021, 7:57pm UTC](https://discourse.laminas.dev/t/i-cannot-create-the-api-module-please-check-if-already-exists/2358 "2021-08-30T19:57:38Z")

</div>

Hello, im new and my name is Sascha. I try the first time an RestAPI in my C# Programm and i want to use Laminas to store the datas in an database. At first, sorry for my bad english. I try to install laminas. I did t…

---

## [Fatal Error in fresh Laminas API Tools Skeleton installation](https://discourse.laminas.dev/t/fatal-error-in-fresh-laminas-api-tools-skeleton-installation/2393)

<div class="topic-metadata">

**Author:** [@ezkimo](https://discourse.laminas.dev/u/ezkimo)\
**Replies:** 11\
**Last updated:** [July 7, 2021, 9:07am UTC](https://discourse.laminas.dev/t/fatal-error-in-fresh-laminas-api-tools-skeleton-installation/2393 "2021-07-07T09:07:44Z")

</div>

Hey there, I 'm facing a problem with the Laminas API Tools skeleton. I was installing it via composer as described in the documentation. The composer installation process was fine. No error messages or other notices. T…

---

## [How to generate a multilevel WSDL using Laminas SOAP](https://discourse.laminas.dev/t/how-to-generate-a-multilevel-wsdl-using-laminas-soap/2385)

<div class="topic-metadata">

**Author:** [@cavemanweb](https://discourse.laminas.dev/u/cavemanweb)\
**Replies:** 0\
**Last updated:** [June 29, 2021, 6:04am UTC](https://discourse.laminas.dev/t/how-to-generate-a-multilevel-wsdl-using-laminas-soap/2385 "2021-06-29T06:04:04Z")

</div>

I’m trying to figure out how to generate a multilevel XML using Laminas SOAP Autodiscover but I’m unable to do it. I read the documentation but can not find a way to do it. Here’s the link WSDL AutoDiscovery - laminas-s…

---

## [Apigility docker unable to enable development mode](https://discourse.laminas.dev/t/apigility-docker-unable-to-enable-development-mode/1198)

<div class="topic-metadata">

**Author:** [@DaddyOh](https://discourse.laminas.dev/u/DaddyOh)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 1:06am UTC](https://discourse.laminas.dev/t/apigility-docker-unable-to-enable-development-mode/1198 "2021-06-28T01:06:45Z")

</div>

Hi all, NOOB to Apigility. I’m trying to run apigility in development mode via docker on a mac os x laptop. I was able to build and run docker but not in development mode. Then tried the following twice. The first ti…

---

## [DB Connected Service - Javascript Error](https://discourse.laminas.dev/t/db-connected-service-javascript-error/2127)

<div class="topic-metadata">

**Author:** [@dvossos](https://discourse.laminas.dev/u/dvossos)\
**Replies:** 1\
**Last updated:** [June 24, 2021, 10:47am UTC](https://discourse.laminas.dev/t/db-connected-service-javascript-error/2127 "2021-06-24T10:47:39Z")

</div>

Trying to create a new Service of type DB Connected. The tables of the database never shown. The browser reports this javascript error: \[Error\] Error: \[ngRepeat:dupes\] Duplicates in a repeater are not allowed. Use ‘tra…

---

## [Override Oauth2 authentication for checking one more field other than username and password](https://discourse.laminas.dev/t/override-oauth2-authentication-for-checking-one-more-field-other-than-username-and-password/2356)

<div class="topic-metadata">

**Author:** [@faizy](https://discourse.laminas.dev/u/faizy)\
**Replies:** 2\
**Last updated:** [June 16, 2021, 5:26am UTC](https://discourse.laminas.dev/t/override-oauth2-authentication-for-checking-one-more-field-other-than-username-and-password/2356 "2021-06-16T05:26:50Z")

</div>

How to override Oauth2 authentication for checking one more field other than username and password.

---

## [How to Use URL Parameters in POST method](https://discourse.laminas.dev/t/how-to-use-url-parameters-in-post-method/2337)

<div class="topic-metadata">

**Author:** [@faizy](https://discourse.laminas.dev/u/faizy)\
**Replies:** 1\
**Last updated:** [June 8, 2021, 12:07pm UTC](https://discourse.laminas.dev/t/how-to-use-url-parameters-in-post-method/2337 "2021-06-08T12:07:01Z")

</div>

Collection Query String whitelist under Content Negotiation in the Admin UI, or its analogue collection\_query\_whitelist key within api-tools-rest in module.config.php , whitelists query string arguments, allowing their v…

---

## [Error occurring while sending mail (Laminas Email)](https://discourse.laminas.dev/t/error-occurring-while-sending-mail-laminas-email/2331)

<div class="topic-metadata">

**Author:** [@faizy](https://discourse.laminas.dev/u/faizy)\
**Replies:** 0\
**Last updated:** [June 4, 2021, 7:16am UTC](https://discourse.laminas.dev/t/error-occurring-while-sending-mail-laminas-email/2331 "2021-06-04T07:16:31Z")

</div>

“Unable to send mail: Unknown error”

---

## [Api-tools reverse proxying](https://discourse.laminas.dev/t/api-tools-reverse-proxying/2326)

<div class="topic-metadata">

**Author:** [@phandaal](https://discourse.laminas.dev/u/phandaal)\
**Replies:** 0\
**Last updated:** [May 31, 2021, 2:57pm UTC](https://discourse.laminas.dev/t/api-tools-reverse-proxying/2326 "2021-05-31T14:57:42Z")

</div>

I have to make my API available through an nginx reverse proxy with a URL in the form of : https://proxy\_server/api/, where proxy\_server is a proxy only nginx server and the api tools are installed on a second server (a…

---

## [Package issues on IBM i (ZF-Deploy)](https://discourse.laminas.dev/t/package-issues-on-ibm-i-zf-deploy/2297)

<div class="topic-metadata">

**Author:** [@dickdono](https://discourse.laminas.dev/u/dickdono)\
**Replies:** 4\
**Last updated:** [May 17, 2021, 4:28am UTC](https://discourse.laminas.dev/t/package-issues-on-ibm-i-zf-deploy/2297 "2021-05-17T04:28:18Z")

</div>

We are currently running Apigility and a ZF2 application on our IBM i using ZendServer and php 5.6. We have just completed our conversion of the Apigility project to API-Tools so that we can run it under “Community” php…

---

## [Import Open­API (OAS) into API Tools](https://discourse.laminas.dev/t/import-open-api-oas-into-api-tools/2283)

<div class="topic-metadata">

**Author:** [@sven](https://discourse.laminas.dev/u/sven)\
**Replies:** 0\
**Last updated:** [May 1, 2021, 4:09pm UTC](https://discourse.laminas.dev/t/import-open-api-oas-into-api-tools/2283 "2021-05-01T16:09:39Z")

</div>

Hello, I came across API Tool today and I think the software is really cool! My question: I have an API created with Swagger in OpenAPI 3.0.3. Is it possible to import the YAML (or the JSON) file? I would just rather …

---

## [How to validate decimal numbers through Laminas api tool?](https://discourse.laminas.dev/t/how-to-validate-decimal-numbers-through-laminas-api-tool/2278)

<div class="topic-metadata">

**Author:** [@faizy](https://discourse.laminas.dev/u/faizy)\
**Replies:** 1\
**Last updated:** [April 29, 2021, 6:49am UTC](https://discourse.laminas.dev/t/how-to-validate-decimal-numbers-through-laminas-api-tool/2278 "2021-04-29T06:49:40Z")

</div>

In the Laminas api tool, there are several validators. Is any validator for decimal numbers ?

---

## [Incorrect collection name when posting multiple values with API tools and Hal Json](https://discourse.laminas.dev/t/incorrect-collection-name-when-posting-multiple-values-with-api-tools-and-hal-json/2239)

<div class="topic-metadata">

**Author:** [@vigcraig](https://discourse.laminas.dev/u/vigcraig)\
**Replies:** 1\
**Last updated:** [April 15, 2021, 8:47pm UTC](https://discourse.laminas.dev/t/incorrect-collection-name-when-posting-multiple-values-with-api-tools-and-hal-json/2239 "2021-04-15T20:47:31Z")

</div>

Hi, I have an issue where I need to POST multiple values, but in the response, the HAL collection name has defaulted to “items”. The GET works correctly and gives the correct response. How do I get the POST to provide …

[Previous page](https://discourse.laminas.dev/c/questions/api-tools/8.md)

[Next page](https://discourse.laminas.dev/c/questions/api-tools/8.md?page=2)
