Setting up API spec and model