Skip to content

Instantly share code, notes, and snippets.

@rashedtalukder
Last active January 16, 2018 16:32
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/20f6633167cf817ce6f4bfb548598c23 to your computer and use it in GitHub Desktop.
Save rashedtalukder/20f6633167cf817ce6f4bfb548598c23 to your computer and use it in GitHub Desktop.
#%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:
type: object
properties:
user:
type: object
required: true
properties:
email:
type: string
required: true
pagerDuty:
type : object
required: true
properties:
incident_id:
type: string
required: true
statusPage:
type: object
required: true
properties:
incident_name: string
required: true
example: {"user":{"email":"maxmule@mulesoft.com"},"pagerDuty":{"incident_id":"PUPSHS1"},"statusPage":{"incident_name":"bigServer"}}
responses:
200:
description: Success
body:
application/json:
type: object
properties:
responses:
type: array
example: {"responses" : []}
@dipak-patel
Copy link

Hi,
This is a great tutorial. I had trouble creating Mule project from this raml. What I found is incident_name property is not defined correctly, I think it should be like this.
properties:
incident_name:
type: string
required: true
That worked for me.
Thanks
Dipak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment