Fix some typos and improved examples in the REST API docs.