The FolderWebAPI is a Velocity viewtool which provides methods for displaying folders and folder properties, including menu items within the directory.
The following example shows how the FolderWebAPI Viewtool is mapped in the toolbox.xml file:
<tool>
<key>folderAPI</key>
<scope>application</scope>
<class>com.dotcms.rendering.velocity.viewtools.FolderWebAPI</class>
</tool>