Skip to content

Instantly share code, notes, and snippets.

View rashedtalukder's full-sized avatar

Rashed Talukder rashedtalukder

View GitHub Profile
@rashedtalukder
rashedtalukder / choice_router.xml
Created December 12, 2017 02:03
Conditional Flows with Choice Router Challenge
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd">
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
@rashedtalukder
rashedtalukder / raml_challenge.txt
Created December 12, 2017 01:58
RAML Challenge Questions
****** CHOICE A ******
title: Example
version: 1.0
description: This is an RAML example
/champions:
get:
queryParameters:
mulesoft:
type: boolean
@rashedtalukder
rashedtalukder / scatter-gather.xml
Created December 12, 2017 01:41
Scatter-gather Challenge Quiz
<?xml version=""1.0"" encoding=""UTF-8""?>
<mule xmlns:dw=""http://www.mulesoft.org/schema/mule/ee/dw"" 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:spring=""http://www.springframework.org/schema/beans""
xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xsi:schemaLocation=""http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/ee/dw http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd"">
<http:listener-config name=""HTTP_Listener_Configuration"" host=""0.0.0.0"" port=""8081"" doc:name=""HTTP Listener Configuration""/>
@rashedtalukder
rashedtalukder / polling.xml
Last active December 12, 2017 01:32
Polling with Watermarks quiz
<?xml version=""1.0"" encoding=""UTF-8""?>
<mule xmlns:twitter=""http://www.mulesoft.org/schema/mule/twitter""
xmlns:tracking=""http://www.mulesoft.org/schema/mule/ee/tracking"" xmlns:dw=""http://www.mulesoft.org/schema/mule/ee/dw"" 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:spring=""http://www.springframework.org/schema/beans""
xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xsi:schemaLocation=""
http://www.mulesoft.org/schema/mule/twitter http://www.mulesoft.org/schema/mule/twitter/current/mule-twitter.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
#%RAML 1.0
title: DevOps-GetStarted
version: v1
mediaType: application/json
description: This service provides functionality that can be used in day-to-day DevOps processes using a Slack slash command.
/slack:
post:
description: Resolves a PagerDuty incident, while broadcasting to StatusPage.io and to Twitter. Consumes the Resolve & Broadcast APIs.
body:
@rashedtalukder
rashedtalukder / broadcast-getstarted.raml
Created October 23, 2017 00:55
Broadcast RAML spec used in MuleSoft Dev Guide
#%RAML 1.0
title: Broadcast-GetStarted
version: v1
description: This API aggregates DevOps related incidents across multiple platforms & services into single HTTP calls.
/post:
post:
description: Sends a message out via social media
body:
application/json:
#%RAML 1.0
title: incident-GetStarted
version: v1
description: This API aggregates DevOps related incidents across multiple platforms & services into single HTTP calls.
/resolve:
put:
description: Resolves an existing incident in both PagerDuty and StatusPage
body:
application/json:
#%RAML 1.0
version: v1
title: StatusPage-GetStarted
baseUri: https://{{subdomain}}.ngrok.io/api/statuspage/{version}
securitySchemes:
api-key:
type: x-api-key
description: See https://doers.statuspage.io/api/authentication/ for more details
describedBy:
headers:
@rashedtalukder
rashedtalukder / statuspage-rest-api.raml
Created October 4, 2017 00:15
API Spec to some of Status Page's V1 apis
#%RAML 1.0
version: v1
title: StatusPage.io-REST-API
baseUri: https://api.statuspage.io/v1/
securitySchemes:
api-key:
type: x-api-key
description: See https://doers.statuspage.io/api/authentication/ for more details
describedBy:
headers:
@rashedtalukder
rashedtalukder / pagerduty-getstarted.raml
Created October 4, 2017 00:13
PagerDuty Service API
#%RAML 1.0
title: PagerDuty-GetStarted
version: v1
baseUri: https://956df5a2.ngrok.io/api/pagerduty/{version}
mediaType: application/x-www-form-urlencoded
description: PagerDuty aggregates your monitoring systems so you can collect events and resolve critical issues ensure maximum uptime.
/resolve:
put:
description: Resolve an incident. Requires a ID for the incident AND the person requesting.