# Enabling admin APIs in EHRBase

**URL:** <https://discourse.openehr.org/t/enabling-admin-apis-in-ehrbase/1606>\
**Category:** Platform\
**Tags:** ehrbase\
**Created:** [6 June 2021 08:42 UTC](https://discourse.openehr.org/t/enabling-admin-apis-in-ehrbase/1606 "2021-06-06T08:42:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dileep\_V\_S](https://discourse.openehr.org/user_avatar/discourse.openehr.org/dileep_v_s/32/664_2.png) [@Dileep\_V\_S](https://discourse.openehr.org/u/Dileep_V_S)\
**Post date:** [6 June 2021 08:42 UTC](https://discourse.openehr.org/t/enabling-admin-apis-in-ehrbase/1606/1 "2021-06-06T08:42:50Z")

</div>

I am running the latest EHRbase using docker-compose and am unable to see the admin APIs in swagger. Tried both AUTHUSER & AUTHADMINUSER logins.

Is there any environment variable setting to enable this? @jake.smolka

regards

---

<div class="post-metadata">

**Author:** ![jake.smolka](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jake.smolka/32/2870_2.png) [@jake.smolka](https://discourse.openehr.org/u/jake.smolka)\
**Post date:** [7 June 2021 06:38 UTC](https://discourse.openehr.org/t/enabling-admin-apis-in-ehrbase/1606/2 "2021-06-07T06:38:03Z")

</div>

Hey @Dileep_V_S! Have you read [our admin API documentation](https://ehrbase.readthedocs.io/en/latest/03_development/07_admin/index.html)? Please also use the `ADMINAPI_ACTIVE` env var.

And for swagger: As I mentioned [here](https://github.com/ehrbase/ehrbase/issues/504#issuecomment-844226078) the our swagger UI is going to change and therefore it is, in its current form, not our priority. But, of course, our own API additions will be documented with a tool like swagger UI.

---

<div class="post-metadata">

**Author:** ![Dileep\_V\_S](https://discourse.openehr.org/user_avatar/discourse.openehr.org/dileep_v_s/32/664_2.png) [@Dileep\_V\_S](https://discourse.openehr.org/u/Dileep_V_S)\
**Post date:** [7 June 2021 07:26 UTC](https://discourse.openehr.org/t/enabling-admin-apis-in-ehrbase/1606/3 "2021-06-07T07:26:48Z")

</div>

I did look at the admin API documentation. But I seem to have gone directly to the security sub-menu😱. Thanks for pointing this out.

As for the swagger, I am afraid, you may still need to maintain some documentation for the management and admin APIs as they may not be part of the openEHR official REST API specs. Or am I missing something?

regards

---

<div class="post-metadata">

**Author:** ![jake.smolka](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jake.smolka/32/2870_2.png) [@jake.smolka](https://discourse.openehr.org/u/jake.smolka)\
**Post date:** [7 June 2021 08:15 UTC](https://discourse.openehr.org/t/enabling-admin-apis-in-ehrbase/1606/4 "2021-06-07T08:15:52Z")

</div>

> [@Dileep\_V\_S](#):
>
> As for the swagger, I am afraid, you may still need to maintain some documentation for the management and admin APIs as they may not be part of the openEHR official REST API specs. Or am I missing something?

Totally true, that’s what I was trying to say with “But, of course, our own API additions will be documented with a tool like swagger UI.” 🙂
