Register and return a GType for the api and associate it with tags.
api
tags
an API to register
tags for api
a unique GType for api.