# Addressing customer REST end-point using java API

**URL:** <https://discuss.elastic.co/t/addressing-customer-rest-end-point-using-java-api/23642>\
**Category:** Elasticsearch\
**Created:** [May 18, 2015, 1:19pm UTC](https://discuss.elastic.co/t/addressing-customer-rest-end-point-using-java-api/23642 "2015-05-18T13:19:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aken](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@aken](https://discuss.elastic.co/u/aken)\
**Post date:** [May 18, 2015, 1:19pm UTC](https://discuss.elastic.co/t/addressing-customer-rest-end-point-using-java-api/23642/1 "2015-05-18T13:19:02Z")

</div>

Is there a simple way to address the custom end-point exposed by my plugin  
(e.g. /\_myplugin/ping) using the java API? The plugin installs correctly  
and I can test it using curl, but I would like to be able to do this in  
java so I can build some tests.

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e9be8d9e-5606-4987-9e99-1eeff4bbcf50%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e9be8d9e-5606-4987-9e99-1eeff4bbcf50%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [May 18, 2015, 1:29pm UTC](https://discuss.elastic.co/t/addressing-customer-rest-end-point-using-java-api/23642/2 "2015-05-18T13:29:02Z")

</div>

In [https://github.com/jprante/elasticsearch-xml/blob/master/src/test/java/org/xbib/elasticsearch/integration/AbstractNodesTests.java](https://github.com/jprante/elasticsearch-xml/blob/master/src/test/java/org/xbib/elasticsearch/integration/AbstractNodesTests.java) you can study how to obtain the HTTP address of a node for plugin tests in a junit test.

Jörg

Am 18.05.15 um 15:19 schrieb AndrewK:

> Is there a simple way to address the custom end-point exposed by my plugin  
> (e.g. /\_myplugin/ping) using the java API? The plugin installs correctly  
> and I can test it using curl, but I would like to be able to do this in  
> java so I can build some tests.

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5559E91E.5070509%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/5559E91E.5070509%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:13am UTC](https://discuss.elastic.co/t/addressing-customer-rest-end-point-using-java-api/23642/3 "2017-07-06T00:13:30Z")

</div>


