Wrote documentation for REST interface