restful api with physical object