document:
  dsl: '1.0.0'
  namespace: test
  name: call-http-find-by-status
  version: '0.1.0'
do:
  - tryGetPet:
      try:
        - getPet:
            call: http
            with:
              method: get
              endpoint:
                uri: http://localhost:9876/v2/pet/findByStatus?status=sold
      catch:
        errors:
          with:
            type: https://serverlessworkflow.io/spec/1.0.0/errors/communication
        as: error
      output:
        as: .error
