Last active
January 16, 2018 16:32
-
-
Save rashedtalukder/20f6633167cf817ce6f4bfb548598c23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%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" : []} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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