Skip to content

Instantly share code, notes, and snippets.

View JordanSchuetz's full-sized avatar
😍
Coding

Jordan Schuetz JordanSchuetz

😍
Coding
View GitHub Profile
{
"collection": "recipes",
"name": "loco moco",
"ingredients": [
"ground beef",
"butter",
"onion",
"egg",
"bread bun",
"mushrooms"
@JordanSchuetz
JordanSchuetz / mongoDB.dw
Last active January 13, 2021 19:26
MongoDB tutorial
%dw 2.0
output application/json
---
{
"name": payload.name,
"ingredients": payload.ingredients,'
"prepTimeInMinutes": payload.prepTimeInMinutes
}
%dw 2.0
output application/json
---
{
"uuid": attributes.uriParams.'uuid'
}
%dw 2.0
output application/json
---
{
"name" attributes.queryParams.name,
"productID": attributes.queryParams.productID
}
%dw 2.0
output application/json
---
{
"client_id": attributes.headers.client_id,
"client_secret": attributes.headers.client_secret
}
%dw 2.0
output text/plain
---
payload.translations[0].text[0]
%dw 2.0
output application/json
---
[{
"Text": vars.textToTranslate
}]
%dw 2.0
output application/json
---
payload.text
@JordanSchuetz
JordanSchuetz / multicastFlow.xml
Last active November 17, 2020 00:16
multicastFlow.xml
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/http
http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd">
<?xml version="1.0" encoding="UTF-8"?>
<!-- websockets.xml -->
<mule
xmlns:java="http://www.mulesoft.org/schema/mule/java"
xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting"
xmlns:websocket="http://www.mulesoft.org/schema/mule/websocket"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"