#How to show APIs of a service

4 messages · Page 1 of 1 (latest)

fallow birch
#

I have create a backstage app, registered my gitlab repo on the app. now i want to show all the APIs that my service is consuming in the backstage. i tried creating different yaml files for all APIs but even then they are not coming on backstage app. i had done both gitlab integration and discovery steps. i dont know what i am missing and if i am doing wrong, then how should i do it? please help me in this

ebon aurora
#

In case you haven't found the docs on this, here's where an API defintion is documented https://backstage.io/docs/features/software-catalog/descriptor-format/#kind-api
In short, you need to publish the API definition either as an endpoint or as a file and create a API Kind object in your catalog-info,yaml. It can be in the same file as your Component definition. Separate the 2 with a --- like in other yamls

fallow birch
#

thanks sayak, it worked

#

is their any to automate this process, like i dont have to create yaml files for apis, instead i will just register my repo to backstage and then i will be able to see the apis
my manager dont want me to make lot of changes to source code