The projects and files in this repository are examples that may be published to your organization's private Exchange.
The documentation about Exchange publication APIs are using these examples here:
- Mule Application
- Mule Application Example
- Mule Application Template
- Mule Policy
- Custom Asset
- Custom Library
Configure the groupId of the Anypoint Organization where you will be publishing assets. Execute the following command. Replace <add-the-group-id-of-your-org-here>
with the organization ID where the assets will be published.
$ grep --exclude="*.md" -r -l 'YOUR_GROUP_ID' * | xargs sed -i "" 's/YOUR_GROUP_ID/<add-the-group-id-of-your-org-here>/g'
For example:
$ grep --exclude="*.md" -r -l 'YOUR_GROUP_ID' * | xargs sed -i "" 's/YOUR_GROUP_ID/18f84756-2795-4d58-871a-7ece326ac1f3/g'
$ grep --exclude="*.md" -r -l 'YOUR_GROUP_ID' * | xargs sed -i 's/YOUR_GROUP_ID/<add-the-group-id-of-your-org-here>/g'
For example:
$ grep --exclude="*.md" -r -l 'YOUR_GROUP_ID' * | xargs sed -i 's/YOUR_GROUP_ID/18f84756-2795-4d58-871a-7ece326ac1f3/g'
Replace ANYPOINT_USERNAME with your Anypoint Platform user account name. Replace ANYPOINT_PASSWORD with your password.
Execute:
curl --location --request POST 'https://anypoint.mulesoft.com/accounts/login' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"username":"ANYPOINT_USERNAME",
"password":"ANYPOINT_PASSWORD"
}' | jq -r ".access_token"