return right Api class in an ApiDeclaration

The `ApiDeclaration` returned the wrong `Api` objects (was `ResourceListing\Api`, should be `ApiDeclaration\Api`)