Add Spec for Api

Add a spec to test the Api class.
Add Api Class

Add the Api class.