# All REST Entry Points

**URL:** <https://discuss.elastic.co/t/all-rest-entry-points/9360>\
**Category:** Elasticsearch\
**Created:** [October 15, 2012, 7:20pm UTC](https://discuss.elastic.co/t/all-rest-entry-points/9360 "2012-10-15T19:20:13Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [October 15, 2012, 7:20pm UTC](https://discuss.elastic.co/t/all-rest-entry-points/9360/1 "2012-10-15T19:20:13Z")

</div>

Heya,

I'm working on a SPORE definition file [1] for Elasticsearch.  
Is there any file, java class, whatever where I can find all entry points or do  
I have to dig into documentation?

Thanks for any hint.

[1][https://github.com/SPORE/api-description](https://github.com/SPORE/api-description)

--  
David Pilato  
[http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<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:** [October 15, 2012, 7:34pm UTC](https://discuss.elastic.co/t/all-rest-entry-points/9360/2 "2012-10-15T19:34:22Z")

</div>

I don't think there is any canonical reference for all REST endpoints, but  
their corresponding classes should all be in the  
org.elasticsearch.rest.action package.

[https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action](https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action)

RestActionModule has a list of all classes involved, but not the actual  
endpoints. All endpoints are registered with the RestController, but all  
the handlers are marked as private. I once tried to find the same  
information, but didn't venture further.

Cheers,

Ivan

On Mon, Oct 15, 2012 at 12:20 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> \*\*  
> Heya,
> 
> I'm working on a SPORE definition file [1] for Elasticsearch.  
> Is there any file, java class, whatever where I can find all entry points  
> or do I have to dig into documentation?
> 
> Thanks for any hint.
> 
> [1][GitHub - SPORE/api-description: SPORE description for API](https://github.com/SPORE/api-description)
> 
> --  
> David Pilato  
> [http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
> [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> --

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [October 15, 2012, 7:37pm UTC](https://discuss.elastic.co/t/all-rest-entry-points/9360/3 "2012-10-15T19:37:05Z")

</div>

When we faced the same problem in elasticsearch-jetty plugin, we ended up  
solving it by searching elasticsearch source code for the string  
"controller.registerHandler". This search should return you all registered  
REST end points. You can find a script that is doing it  
here [https://github.com/sonian/elasticsearch-jetty/blob/master/scripts/find-methods.sh](https://github.com/sonian/elasticsearch-jetty/blob/master/scripts/find-methods.sh) It  
will output results in this  
format: [https://github.com/sonian/elasticsearch-jetty/blob/master/scripts/methods.txt](https://github.com/sonian/elasticsearch-jetty/blob/master/scripts/methods.txt) I  
have to admit it's probably not the most elegant and precise method, but I  
think it beats digging through documentation 🙂

On Monday, October 15, 2012 3:34:26 PM UTC-4, Ivan Brusic wrote:

> I don't think there is any canonical reference for all REST endpoints, but  
> their corresponding classes should all be in the  
> org.elasticsearch.rest.action package.
> 
> [https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action](https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action)
> 
> RestActionModule has a list of all classes involved, but not the actual  
> endpoints. All endpoints are registered with the RestController, but all  
> the handlers are marked as private. I once tried to find the same  
> information, but didn't venture further.
> 
> Cheers,
> 
> Ivan
> 
> On Mon, Oct 15, 2012 at 12:20 PM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr)\<javascript:\>
> 
> > wrote:
> 
> > \*\*  
> > Heya,
> > 
> > I'm working on a SPORE definition file [1] for Elasticsearch.  
> > Is there any file, java class, whatever where I can find all entry  
> > points or do I have to dig into documentation?
> > 
> > Thanks for any hint.
> > 
> > [1][GitHub - SPORE/api-description: SPORE description for API](https://github.com/SPORE/api-description)
> > 
> > --  
> > David Pilato  
> > [http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
> > [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > --

--

---

<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:** [October 15, 2012, 7:53pm UTC](https://discuss.elastic.co/t/all-rest-entry-points/9360/4 "2012-10-15T19:53:29Z")

</div>

Wonderful! Thanks!

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 15 oct. 2012 à 21:37, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) a écrit :

When we faced the same problem in elasticsearch-jetty plugin, we ended up solving it by searching elasticsearch source code for the string "controller.registerHandler". This search should return you all registered REST end points. You can find a script that is doing it here [https://github.com/sonian/elasticsearch-jetty/blob/master/scripts/find-methods.sh](https://github.com/sonian/elasticsearch-jetty/blob/master/scripts/find-methods.sh) It will output results in this format: [https://github.com/sonian/elasticsearch-jetty/blob/master/scripts/methods.txt](https://github.com/sonian/elasticsearch-jetty/blob/master/scripts/methods.txt) I have to admit it's probably not the most elegant and precise method, but I think it beats digging through documentation 🙂

On Monday, October 15, 2012 3:34:26 PM UTC-4, Ivan Brusic wrote:

> I don't think there is any canonical reference for all REST endpoints, but their corresponding classes should all be in the org.elasticsearch.rest.action package.
> 
> [https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action](https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action)
> 
> RestActionModule has a list of all classes involved, but not the actual endpoints. All endpoints are registered with the RestController, but all the handlers are marked as private. I once tried to find the same information, but didn't venture further.
> 
> Cheers,
> 
> Ivan
> 
> On Mon, Oct 15, 2012 at 12:20 PM, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> 
> > Heya,
> > 
> > I'm working on a SPORE definition file [1] for Elasticsearch.  
> > Is there any file, java class, whatever where I can find all entry points or do I have to dig into documentation?
> > 
> > Thanks for any hint.
> > 
> > [1][GitHub - SPORE/api-description: SPORE description for API](https://github.com/SPORE/api-description)
> > 
> > ## -- David Pilato [http://www.scrutmydocs.org/](http://www.scrutmydocs.org/) [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

--

---

<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:08am UTC](https://discuss.elastic.co/t/all-rest-entry-points/9360/5 "2017-07-06T03:08:44Z")

</div>


