# API Tools Admin UI: Cannot create the API module

**URL:** <https://discourse.laminas.dev/t/api-tools-admin-ui-cannot-create-the-api-module/2474>\
**Category:** API Tools\
**Tags:** laminas-mvc\
**Created:** [August 28, 2021, 10:04am UTC](https://discourse.laminas.dev/t/api-tools-admin-ui-cannot-create-the-api-module/2474 "2021-08-28T10:04:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![helmi90](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/helmi90/32/869_2.png) [@helmi90](https://discourse.laminas.dev/u/helmi90)\
**Post date:** [September 3, 2021, 5:36pm UTC](https://discourse.laminas.dev/t/api-tools-admin-ui-cannot-create-the-api-module/2474/3 "2021-09-03T17:36:20Z")

</div>

It took me days to realize that the marked solution from [Laminas API Tools - unable to create new API in Admi UI - #5 by divix](https://discourse.laminas.dev/t/laminas-api-tools-unable-to-create-new-api-in-admi-ui/1418/5) is what I needed to take a closer look at.

When trying to add an API in the Laminas API Tools Admin UI, I still get the same error, but now I know how to fix it (manipulate code manually) so I can still use the API Tools Admin UI:

![Bildschirmfoto_2021-08-28_10-56-51 (Kopie 2)](https://canada1.discourse-cdn.com/flex032/uploads/zendframework/original/2X/6/6618f6cdac753839d21b2048e50f526d1023a7b6.png)

As you can see in the screenshot above, another folder named _NewAPI_ is automatically created under the _src_ folder. I totally overlooked that when trying to add the new module to the autoloader in my _comopser.json_-file.

* * *

The following works fine for me now:

- I do **not delete** the new entry ‘NewApi’ from _modules.config.php_
- I am adding the new module to the autoloader in my _comopser.json_-file:

```auto
...
"autoload-dev": {
        "psr-4": {
            "NewAPI\\": "module/NewAPI/src/NewAPI/"
        }
    },
...

```

After these steps and a page refresh, my new API is available in Laminas API Tools and I can work with it.

---

_[View the full topic](https://discourse.laminas.dev/t/api-tools-admin-ui-cannot-create-the-api-module/2474)._
