If you're using the MVC pattern, the URL is usually represented as:
example.com/class/function/ID
These are pragmatic accessible pieces of information, meaning that you could still use JavaDoc and be able to document the RESTful approach, since each part of the URL is connected to the source code itself.