add rest api struct