Add spec for api declaration file generation