# Questions about REST actions in ElasticSearch

**URL:** <https://discuss.elastic.co/t/questions-about-rest-actions-in-elasticsearch/21946>\
**Category:** Elasticsearch\
**Created:** [February 2, 2015, 9:14am UTC](https://discuss.elastic.co/t/questions-about-rest-actions-in-elasticsearch/21946 "2015-02-02T09:14:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thierry\_Templier\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thierry_templier_2/32/765_2.png) [@Thierry\_Templier\_2](https://discuss.elastic.co/u/Thierry_Templier_2)\
**Post date:** [February 2, 2015, 9:14am UTC](https://discuss.elastic.co/t/questions-about-rest-actions-in-elasticsearch/21946/1 "2015-02-02T09:14:41Z")

</div>

Hello,

I try to embed an OData engine within an ElasticSearch REST plugin. To do  
that, I need to know if it's possible and how to handle the following  
things:

- Attach a REST action that handles several paths and HTTP methods using a  
pattern like /odata.svc/\*:

public class ODataRestAction extends BaseRestHandler {  
@Inject  
public ODataRestAction(Settings settings, Client client,  
RestController controller) {  
super(settings, client);  
controller.registerHandler(Method.GET, "/odata.svc/\*", this);  
}

```
(...)

```

}

For information, I described a possible solution here:  
[https://github.com/elasticsearch/elasticsearch/issues/5191](https://github.com/elasticsearch/elasticsearch/issues/5191).

- Obtain an output stream of the current response in order to directly  
write the whole response content in it.

Thanks very much for your help!  
Thierry

## -- Best, Thierry

_Thierry Templier, Lead Architect_  
[ttemplier@restlet.com](mailto:ttemplier@restlet.com)

Restlet SAS, 6 rue Rose Dieng-Kuntz • 44300 Nantes • France

--  
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/CAL73BC3SVeprps7hZSGzrjuCdE%2BWis7RoDckZ4O\_v9smDhPUfg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL73BC3SVeprps7hZSGzrjuCdE%2BWis7RoDckZ4O_v9smDhPUfg%40mail.gmail.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:35am UTC](https://discuss.elastic.co/t/questions-about-rest-actions-in-elasticsearch/21946/2 "2017-07-06T00:35:22Z")

</div>

Closed on July 6, 2017, 12:35am UTC


