Add a spec for the API