Added a REST API.
Fixed missing ch_name, etc.