cnoe-io / backstage-app

10 stars 17 forks source link

Imported roadiehq http request plugin #41

Closed mmaroth closed 1 month ago

mmaroth commented 1 month ago

To make external API calls from backstage, we need proxy and roadie http request plugin. We have proxy already included in backstage-app. We are adding roadie plugin to cnoe backstage-app, to support external API calls.

This plugin supports below methods: GET POST UPDATE PATCH DELETE PUT

How to use this action?

Step1: Update backstage app-config.yaml file proxy. proxy: /abc: https://example.com

Step2: Use "http:backstage:request" action in scaffolder template.

- id: backstage_request name: backstage request action: http:backstage:request input: method: 'GET' path: '/proxy/abc/whatsmyip'