write REST API