Logo

dev-resources.site

for different kinds of informations.

How to generate shareable link examples from GitHub to open in the DataWeave Playground

Published at
2/8/2023
Categories
dataweave
github
mulesoft
programming
Author
devalexmartinez
Author
15 person written this
devalexmartinez
open
How to generate shareable link examples from GitHub to open in the DataWeave Playground

This is intended as a short guide. For detailed instructions + video, please see this article.

Prepare your GitHub repo

Inside the folder of your example, make sure you have the following folder structure:

folderExample/
  - inputs/
    - payload.json // or any other input files
  - transform.dwl // with your main script
  - // Add more .dwl files for custom modules
Enter fullscreen mode Exit fullscreen mode

Generate the link

Take this base URL to base your own link in:

https://dataweave.mulesoft.com/learn/playground?
projectMethod=GHRepo&
repo=<github-username>%2F<github-repo>&
path=<path-to-the-example>
Enter fullscreen mode Exit fullscreen mode

Note:

The %2F character is used to replace / to make the link url-safe.

Let's say that this folderExample was located in my alexandramartinez username and a dw-scripts repo. Then my URL would look like this:

https://dataweave.mulesoft.com/learn/playground?
projectMethod=GHRepo&
repo=alexandramartinez%2Fdw-scripts&
path=folderExample
Enter fullscreen mode Exit fullscreen mode

Real example

If you want to compare your link to a real example, take a look at this URL: https://dataweave.mulesoft.com/learn/playground?projectMethod=GHRepo&repo=alexandramartinez%2Fdataweave-scripts&path=functions%2FmaskFields

Which is based on this folder: https://github.com/alexandramartinez/dataweave-scripts/tree/main/functions/maskFields

mulesoft Article's
30 articles in total
Favicon
Top Use Cases of MuleSoft API Manager
Favicon
List of AsyncAPI servers in MuleSoft
Favicon
Comparison Of Boomi And Mulesoft: Choosing The Right Integration Platform
Favicon
MuleSoft RPA Basics: From Start to Finish
Favicon
Quick fix: com.github.everit-org.json-schema:org.everit.json.schema:jar:1.12.2 was not found
Favicon
The Ultimate Guide to Mastering MuleSoft: Elevate Your Integration Skills
Favicon
How to Improve Productivity with MuleSoft RPA Integration
Favicon
Integration Digest: March 2024
Favicon
4 ways to retrieve your OrgID/groupID from Anypoint Platform
Favicon
An interesting Mule app to create complex MUnits
Favicon
Methods for Handling Null Values in DataWeave
Favicon
Quick guide to applying MuleSoft's API Autodiscovery
Favicon
Quick guide to secure/encrypt your properties in MuleSoft
Favicon
Integration Digest: October 2023
Favicon
Integration Digest: November 2023
Favicon
mTLS in CloudHub 2.0 : What Developers Need to Know
Favicon
Harnessing the power of MuleSoft and Hasura
Favicon
How to Set HTTP Error Responses in MUnit Testing
Favicon
Quick reference: CI/CD for a Mule app using a Connected App
Favicon
Mastering RAML Resource Naming: Best Practices for a MuleSoft Marvel! 💻🚀
Favicon
Leverage Exchange Mocking Service with Mocking Service Proxy
Favicon
Best Mulesoft Service Providers
Favicon
Using time() and duration() in DataWeave for performance check
Favicon
Deploying MuleSoft Application to Cloudhub 2.0 using Azure DevOps - Part 2
Favicon
Deploying MuleSoft Application to Cloudhub 2.0 using Azure DevOps - Part 1
Favicon
Main difference between 'do' and 'using' operators in DataWeave
Favicon
Develop your Battlesnake using a MuleSoft API & DataWeave with this starter project
Favicon
How to generate shareable link examples from GitHub to open in the DataWeave Playground
Favicon
Custom Alerts and Notifications in CloudHub 2.0
Favicon
Read this book to get started with MuleSoft! Especially if you come from a Salesforce background

Featured ones: