Add javadoc for rest service, add details query param to methods (default to false)