# Creating pluggable REST endpoints

**URL:** <https://discuss.elastic.co/t/creating-pluggable-rest-endpoints/5341>\
**Category:** Elasticsearch\
**Created:** [September 9, 2011, 7:17pm UTC](https://discuss.elastic.co/t/creating-pluggable-rest-endpoints/5341 "2011-09-09T19:17:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [September 9, 2011, 7:17pm UTC](https://discuss.elastic.co/t/creating-pluggable-rest-endpoints/5341/1 "2011-09-09T19:17:15Z")

</div>

There has been some talk about plugins lately, and I was wondering  
about how much can be accomplished via plugins. I decided to create a  
new REST endpoint and write a brief write-up about my experiences:

> **[Create pluggable REST endpoints in elasticsearch](http://blog.brusic.com/2011/09/create-pluggable-rest-endpoints-in.html)**
>
> A quick introduction on how to create a plugin in elasticsearch that allows you to define new REST endpoints.

Didn't take much snooping around, but it did make me wonder about  
plugins and what the various modules actually do.

My example isn't much, but I was able to create a simple Maven pom  
that should be a good starting point to creating an elasticsearch  
plugin: [https://github.com/brusic/elasticsearch-hello-world-plugin/blob/master/pom.xml](https://github.com/brusic/elasticsearch-hello-world-plugin/blob/master/pom.xml)

I have not done any Java development in over a year, forgot how much I  
dislike Maven. 🙂 Was about to learn gradle, but decided to skip it  
for now. Intellij just announced support for gradle in their new  
beta.

Cheers,

Ivan

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [September 9, 2011, 7:21pm UTC](https://discuss.elastic.co/t/creating-pluggable-rest-endpoints/5341/2 "2011-09-09T19:21:11Z")

</div>

I also wanted to add that while my writeup is not interesting enough  
for the online guide, there should be a recipe/cookbook for quick hack  
such as this one. I have a few more.

On Fri, Sep 9, 2011 at 3:17 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> There has been some talk about plugins lately, and I was wondering  
> about how much can be accomplished via plugins. I decided to create a  
> new REST endpoint and write a brief write-up about my experiences:  
> [{ "blog" : "brusic" }: Create pluggable REST endpoints in elasticsearch](http://blog.brusic.com/2011/09/create-pluggable-rest-endpoints-in.html)
> 
> Didn't take much snooping around, but it did make me wonder about  
> plugins and what the various modules actually do.
> 
> My example isn't much, but I was able to create a simple Maven pom  
> that should be a good starting point to creating an elasticsearch  
> plugin: [https://github.com/brusic/elasticsearch-hello-world-plugin/blob/master/pom.xml](https://github.com/brusic/elasticsearch-hello-world-plugin/blob/master/pom.xml)
> 
> I have not done any Java development in over a year, forgot how much I  
> dislike Maven. 🙂 Was about to learn gradle, but decided to skip it  
> for now. Intellij just announced support for gradle in their new  
> beta.
> 
> Cheers,
> 
> Ivan

---

<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:** [September 9, 2011, 8:07pm UTC](https://discuss.elastic.co/t/creating-pluggable-rest-endpoints/5341/3 "2011-09-09T20:07:22Z")

</div>

Thank you so much for sharing this.  
It will be very helpfull.

David 😉

Le 9 sept. 2011 à 21:17, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) a écrit :

> There has been some talk about plugins lately, and I was wondering  
> about how much can be accomplished via plugins. I decided to create a  
> new REST endpoint and write a brief write-up about my experiences:  
> [{ "blog" : "brusic" }: Create pluggable REST endpoints in elasticsearch](http://blog.brusic.com/2011/09/create-pluggable-rest-endpoints-in.html)
> 
> Didn't take much snooping around, but it did make me wonder about  
> plugins and what the various modules actually do.
> 
> My example isn't much, but I was able to create a simple Maven pom  
> that should be a good starting point to creating an elasticsearch  
> plugin: [https://github.com/brusic/elasticsearch-hello-world-plugin/blob/master/pom.xml](https://github.com/brusic/elasticsearch-hello-world-plugin/blob/master/pom.xml)
> 
> I have not done any Java development in over a year, forgot how much I  
> dislike Maven. 🙂 Was about to learn gradle, but decided to skip it  
> for now. Intellij just announced support for gradle in their new  
> beta.
> 
> Cheers,
> 
> Ivan

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 10, 2011, 10:12pm UTC](https://discuss.elastic.co/t/creating-pluggable-rest-endpoints/5341/4 "2011-09-10T22:12:09Z")

</div>

Hi Ivan, this looks great!. How about putting in in the tutorial part of the  
[elasticsearch.org](http://elasticsearch.org) site?

On Fri, Sep 9, 2011 at 10:21 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> I also wanted to add that while my writeup is not interesting enough  
> for the online guide, there should be a recipe/cookbook for quick hack  
> such as this one. I have a few more.
> 
> On Fri, Sep 9, 2011 at 3:17 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > There has been some talk about plugins lately, and I was wondering  
> > about how much can be accomplished via plugins. I decided to create a  
> > new REST endpoint and write a brief write-up about my experiences:  
> > [{ "blog" : "brusic" }: Create pluggable REST endpoints in elasticsearch](http://blog.brusic.com/2011/09/create-pluggable-rest-endpoints-in.html)
> > 
> > Didn't take much snooping around, but it did make me wonder about  
> > plugins and what the various modules actually do.
> > 
> > My example isn't much, but I was able to create a simple Maven pom  
> > that should be a good starting point to creating an elasticsearch  
> > plugin:  
> > [https://github.com/brusic/elasticsearch-hello-world-plugin/blob/master/pom.xml](https://github.com/brusic/elasticsearch-hello-world-plugin/blob/master/pom.xml)
> > 
> > I have not done any Java development in over a year, forgot how much I  
> > dislike Maven. 🙂 Was about to learn gradle, but decided to skip it  
> > for now. Intellij just announced support for gradle in their new  
> > beta.
> > 
> > Cheers,
> > 
> > Ivan

---

<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 6, 2017, 3:54am UTC](https://discuss.elastic.co/t/creating-pluggable-rest-endpoints/5341/5 "2017-07-06T03:54:53Z")

</div>


