basic structure of apis