finished a basic structure of the api