Create REST doc, and add a reference method