Basic template of the API

This is the code that I got working in Xcode yesterday.