document REST API