pub async fn serve_api(params: RestApiParameters) -> Result<(), Error>
Starts the Rest API listener and router.