cancel
Showing results for 
Search instead for 
Did you mean: 

Use Usage API from BTP in Fiori Application

ChrisSislak
Explorer
0 Kudos

Hi all,

is there a way to use the usage api within an Fiori Application created in BAS or is there an existing guide, which shows how to use it?

I would read via a $.ajax get against the monthlySubaccountsCost api endpoint, shown here: https://api.sap.com/api/APIUasReportingService/resource

Further information to this, can be found here: https://help.sap.com/docs/btp/sap-business-technology-platform/monitoring-usage-information-using-ap...

Is it possible to test against this service from the BAS or do I have to deploy the application each time to CF?

BR

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

In the details of the documentation you find Service Plans. You need to create an instance. Then you can create a destination that can be consumed in BAS using a service key that you've created.

ChrisSislak
Explorer
0 Kudos

Hi Gregor, is there an example, I'm totally stucked with this. I created a destination pointing to the API, but I need to create a bearertoken upfront, isnt it?

gregorw
Active Contributor
0 Kudos

The approuter will read the details from the destination service and do the authentication for you.

ChrisSislak
Explorer
0 Kudos

Hi Gregor, so I created a destination like this

How to manage the call from the BAS, without deploying it to CF before? This I don't get... could you help on this, with an example, or the entries to do within the xs-app.json, manifest?