# Where is the code entrance of bulk api

**URL:** https://discuss.elastic.co/t/where-is-the-code-entrance-of-bulk-api/10172
**Category:** Elasticsearch
**Created:** [December 26, 2012, 3:31am UTC](https://discuss.elastic.co/t/where-is-the-code-entrance-of-bulk-api/10172 "2012-12-26T03:31:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![asoqa](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@asoqa](https://discuss.elastic.co/u/asoqa)
#### Post date: [December 26, 2012, 3:31am UTC](https://discuss.elastic.co/t/where-is-the-code-entrance-of-bulk-api/10172/1 "2012-12-26T03:31:26Z")

</div>

for example:  
curl -XPOST localhost:9200/\_bulk --data-binary @request

I want to debug the bulk request, but don't know where to set the  
breakpoint.

--

---

<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: [December 26, 2012, 3:37am UTC](https://discuss.elastic.co/t/where-is-the-code-entrance-of-bulk-api/10172/2 "2012-12-26T03:37:01Z")

</div>

Look under the org.elasticsearch.rest.action package for all REST  
endpoints:  
[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)

In your case, RestBulkAction:  
[https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/bulk/RestBulkAction.java](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/bulk/RestBulkAction.java)

--  
Ivan

On Tue, Dec 25, 2012 at 7:31 PM, asoqa [asoqa51@gmail.com](mailto:asoqa51@gmail.com) wrote:

> I want to debug the bulk request, but don't know where to set the  
> breakpoint.

--

---

<div class="post-metadata">

### Author: ![asoqa](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@asoqa](https://discuss.elastic.co/u/asoqa)
#### Post date: [December 26, 2012, 5:57am UTC](https://discuss.elastic.co/t/where-is-the-code-entrance-of-bulk-api/10172/3 "2012-12-26T05:57:42Z")

</div>

thanks

在 2012年12月26日星期三UTC+8上午11时37分01秒，Ivan Brusic写道：

> Look under the org.elasticsearch.rest.action package for all REST  
> endpoints:  
> [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)
> 
> In your case, RestBulkAction:  
> [https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/bulk/RestBulkAction.java](https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/bulk/RestBulkAction.java)
> 
> --  
> Ivan
> 
> On Tue, Dec 25, 2012 at 7:31 PM, asoqa \<[aso...@gmail.com](mailto:aso...@gmail.com) \<javascript:\>\>wrote:
> 
> > I want to debug the bulk request, but don't know where to set the  
> > breakpoint.

--

---

<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, 2:58am UTC](https://discuss.elastic.co/t/where-is-the-code-entrance-of-bulk-api/10172/4 "2017-07-06T02:58:29Z")

</div>


