Component Type in API

I have a content type set up with several components. Now I’d like to output the component name/type (i.e. product.component) to the api. Is there a way to do so?

...
"attributes": {
    "accesories": {
       "type": "component",
       "component": "product.component"

Output:
"accesories": {
   "type": "product.component",
   "otherComponentField": ...