Update rest-api.markdown

Update rest-api documentation