basic api creater