# Creating a dynamic swagger for an Elasticsearch API

**URL:** <https://discuss.elastic.co/t/creating-a-dynamic-swagger-for-an-elasticsearch-api/122345>\
**Category:** Elasticsearch\
**Created:** [March 3, 2018, 12:40am UTC](https://discuss.elastic.co/t/creating-a-dynamic-swagger-for-an-elasticsearch-api/122345 "2018-03-03T00:40:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamal\_Hafyane](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@Kamal\_Hafyane](https://discuss.elastic.co/u/Kamal_Hafyane)\
**Post date:** [March 3, 2018, 12:40am UTC](https://discuss.elastic.co/t/creating-a-dynamic-swagger-for-an-elasticsearch-api/122345/1 "2018-03-03T00:40:26Z")

</div>

I want to create a **dynamic swagger** of an **elasticsearch API** since the response returned by Api is unexpected because it contains **facets** and I would like to know if there is way to generate the **swagger** automatically through **elasticsearch**.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 3, 2018, 1:03am UTC](https://discuss.elastic.co/t/creating-a-dynamic-swagger-for-an-elasticsearch-api/122345/2 "2018-03-03T01:03:18Z")

</div>

No it does not exist. See

> <https://github.com/elastic/elasticsearch/issues/25152>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 31, 2018, 1:03am UTC](https://discuss.elastic.co/t/creating-a-dynamic-swagger-for-an-elasticsearch-api/122345/3 "2018-03-31T01:03:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
