Api foundation

Create pull request for api foundation