Finding code for OOTB API endpoints

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!



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


Great! That’s the one I was after.

Thanks a bunch!