Skip to content

Instantly share code, notes, and snippets.

Avatar

Rashed Talukder rashedtalukder

  • Amazon, Inc.
View GitHub Profile
@rashedtalukder
rashedtalukder / statuspage-rest-api.raml
Created Oct 4, 2017
API Spec to some of Status Page's V1 apis
View statuspage-rest-api.raml
#%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 / broadcast-getstarted.raml
Created Oct 23, 2017
Broadcast RAML spec used in MuleSoft Dev Guide
View broadcast-getstarted.raml
#%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:
View devops-getstarted
#%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 / polling.xml
Last active Dec 12, 2017
Polling with Watermarks quiz
View polling.xml
<?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
@rashedtalukder
rashedtalukder / raml_challenge.txt
Created Dec 12, 2017
RAML Challenge Questions
View raml_challenge.txt
****** CHOICE A ******
title: Example
version: 1.0
description: This is an RAML example
/champions:
get:
queryParameters:
mulesoft:
type: boolean
@rashedtalukder
rashedtalukder / choice_router.xml
Created Dec 12, 2017
Conditional Flows with Choice Router Challenge
View choice_router.xml
<?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 / scatter-gather.xml
Created Dec 12, 2017
Scatter-gather Challenge Quiz
View scatter-gather.xml
<?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""/>
View incidents-getstarted
#%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:
View twitter-getstarted.raml
#%RAML 1.0
title: Twitter-GetStarted
version: v1
baseUri: https://956df5a2.ngrok.io/api/twitter/{version}
mediaType: application/json
description: Twitter is an online social networking and microblogging service that enables users to send and read short 140-character text messages, called "tweets." This service allows users to post a tweet to the corporate Twitter account.
/tweet:
post:
description: Updates the authenticating user's current status, also known as tweeting.
View pagerduty-getstarted.raml
#%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.
You can’t perform that action at this time.