addng base Api and making Github use it