Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Manage API Contracts #44

Open
TimGonz-AVIO opened this issue Aug 11, 2022 · 1 comment
Open

Enhancement: Manage API Contracts #44

TimGonz-AVIO opened this issue Aug 11, 2022 · 1 comment

Comments

@TimGonz-AVIO
Copy link
Contributor

We should add a Feature to the mule-deploy-library that can create contracts between our published application and any applications it may need to call. This should be managed in a stand-alone (not attached to a deployment plane such as cloudHubDeployment) block that looks like the following:

contracts {
    clientApplicationName "my-new-api-client"
    exchangeIdsToContractWith ([
            "my-cool-api",
            "the-problem-api"
    ] as LinkedList)
}

We should discuss if clientApplicationName will automatically receive an environment specific suffix or will need to be passed with the appropriate suffix (such as using string interpolation to populate the environment).

@TimGonz-AVIO has already done some work around this, he can get you a copy of a customer fork of this repo that has the code he wrote to accomplish this task.

@TimGonz-AVIO
Copy link
Contributor Author

TimGonz-AVIO commented Nov 16, 2022

This effort will be blocked until Mulesoft fixes one of the API calls due client credential auth always throwing an unauthorized error.

Get all contracts (either endpoint):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant