github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/workflowstep/request.eg.md (about) 1 ```yaml 2 apiVersion: core.oam.dev/v1beta1 3 kind: Application 4 metadata: 5 name: request-http 6 namespace: default 7 spec: 8 components: [] 9 workflow: 10 steps: 11 - name: request 12 type: request 13 properties: 14 url: https://api.github.com/repos/kubevela/workflow 15 outputs: 16 - name: stars 17 valueFrom: | 18 import "strconv" 19 "Current star count: " + strconv.FormatInt(response["stargazers_count"], 10) 20 - name: notification 21 type: notification 22 inputs: 23 - from: stars 24 parameterKey: slack.message.text 25 properties: 26 slack: 27 url: 28 value: <your slack url> 29 - name: failed-notification 30 type: notification 31 if: status.request.failed 32 properties: 33 slack: 34 url: 35 value: <your slack url> 36 message: 37 text: "Failed to request github" 38 ```