# Finding code for OOTB API endpoints

**URL:** https://community.bloomreach.com/t/finding-code-for-ootb-api-endpoints/2364
**Category:** Experience Manager (PaaS/OnPrem)
**Created:** [February 1, 2021, 10:48pm UTC](https://community.bloomreach.com/t/finding-code-for-ootb-api-endpoints/2364 "2021-02-01T22:48:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![marnix](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/marnix/32/228_2.png) [@marnix](https://community.bloomreach.com/u/marnix)
#### Post date: [February 1, 2021, 10:48pm UTC](https://community.bloomreach.com/t/finding-code-for-ootb-api-endpoints/2364/1 "2021-02-01T22:48:25Z")

</div>

Hi all,

I’ve been trying to find where the code lives that serves up the JSON documents accessible through `/api/documents` and `/api/documents/<uuid>`

For some reason I can’t seem to find the dependency that’s responsible for those endpoints.

Any help would be much appreciated!

Cheers,

Marnix

---

<div class="post-metadata">

### Author: ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)
#### Post date: [February 2, 2021, 12:52am UTC](https://community.bloomreach.com/t/finding-code-for-ootb-api-endpoints/2364/2 "2021-02-02T00:52:31Z")

</div>

not sure which API you mean (/api can be anything), but most probably you are after:  
org.hippoecm.hst.restapi.content.DocumentsResource class in:

```
  <groupId>org.onehippo.cms7.hst.components</groupId>
  <artifactId>hst-restapi</artifactId>
```

---

<div class="post-metadata">

### Author: ![marnix](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/marnix/32/228_2.png) [@marnix](https://community.bloomreach.com/u/marnix)
#### Post date: [February 2, 2021, 3:04am UTC](https://community.bloomreach.com/t/finding-code-for-ootb-api-endpoints/2364/3 "2021-02-02T03:04:35Z")

</div>

Great! That’s the one I was after.

Thanks a bunch!

Marnix
