Making things restful