define lvl1 APIs by manual and RESTful