Add REST API example in doc and misc doc update