super basic rest api to use