api/rest examples