# Creating Index template via Jest

**URL:** <https://discuss.elastic.co/t/creating-index-template-via-jest/27115>\
**Category:** Elasticsearch\
**Created:** [August 10, 2015, 11:04am UTC](https://discuss.elastic.co/t/creating-index-template-via-jest/27115 "2015-08-10T11:04:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asafmesika](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asafmesika/32/21854_2.png) [@asafmesika](https://discuss.elastic.co/u/asafmesika)\
**Post date:** [August 10, 2015, 11:04am UTC](https://discuss.elastic.co/t/creating-index-template-via-jest/27115/1 "2015-08-10T11:04:38Z")

</div>

Hi,

I was looking for a fluent Java API for creating an index template and came across Jest.  
The problem I saw there was that other than the template name, you had to provide the rest with Json String.

Does someone knows a better way (DSL) for doing that in Java?

Thanks!

Asaf

---

<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:** [July 5, 2017, 11:56pm UTC](https://discuss.elastic.co/t/creating-index-template-via-jest/27115/2 "2017-07-05T23:56:36Z")

</div>


