[minor] Added common used mapping operations to the API instance.

This improves code sharing between the various of implemented endpoints.
[fix] s/dependend/dependend/
[fix] Clean up returned data structures