Skip to content

Instantly share code, notes, and snippets.

@rashedtalukder
Created November 14, 2017 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rashedtalukder/12a822e7be8bf82849f3446595634242 to your computer and use it in GitHub Desktop.
Save rashedtalukder/12a822e7be8bf82849f3446595634242 to your computer and use it in GitHub Desktop.
#%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:
application/x-www-form-urlencoded:
properties:
token: string
response_url: string
command: string
user_id: string
channel_id: string
team_domain: string
text: string
user_name: string
channel_name: string
team_id: string
trigger_id: string
responses:
200:
body:
application/json:
type: object
properties:
broadcast: object
incidents: object
example: |
{
"broadcast": {},
"incidents": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment