Giter VIP home page Giter VIP logo

apic-discovery-test's Introduction

apic-discovery-test

The Apic Discovery Test repo allows you to test the discovery action from here. This is an example repo from where the API documents can be sent to the API connect manager using the discovery action and where they can be promoted as required to be managed by Apiconnect through their entire lifecycle.

See discover-api.yml and send-to-discovery.yml

The file discover-api.yml has an example of sending the API documents in different ways to the host d-j02.apiconnect.dev.automation.ibm.com to the provider organisation name niraimathi when the workflow file or any one of the mentioned API file content changes.

The job check_changes_job checks for the changes in the workflow file or mentioned API document and the job run-discovery sends the documents mentioned.
The run-discovery job uses the apic-discovery-action repo main branch in the ibm-apiconnect organization

  • uses: ibm-apiconnect/apic-discovery-action@main
    with the parameters supplied
with:
  api_host: ${{ env.API_HOST }}
  provider_org: ${{ env.PROVIDER_ORG }}
  api_key: ${{ secrets.apicApikey }}
  if: env.API_FILES
  api_files: ${{ env.API_FILES }}
  else if: env.API_FOLDERS
  api_folders: ${{ env.API_FOLDERS }}
  resync_check: ${{ needs.check_changes_job.outputs.action_changed && true || false }}

The file send-to-discovery.yml is another example of sending API documents with the extra variable git_diff which sends the git diff files between the current and previous commit. And the discovery action will send the api_files or api_folders to the server when there is a change in the files.

The content can be modified according to the test requirement for sending the APIs

apic-discovery-test's People

Contributors

niraimathigunalan avatar ruairi-hayes avatar integrationsuperhero avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.