setted up api structure