Fixed REST API
Added test for REST API
Generated API document