Created
November 30, 2017 09:58
-
-
Save sdeepaks/1703eb8da48158765dee74644248075b 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: Test API | |
version: v1 | |
baseUri: http://{apiMode}-mycompany.com/api/{version} | |
baseUriParameters: | |
apiMode: | |
description: Specifies the environment on which the API needs to be accessed. | |
type: string | |
enum: [esb-dev,esb-qa,esb] | |
required: true | |
protocols: HTTP | |
types: | |
recordName: | |
type: object | |
properties: | |
recordID: | |
type: integer | |
desc: | |
type: string | |
/records: | |
get: | |
description: An endpoint used to get detail about data records | |
headers: | |
x-MOM-header: | |
type: string | |
example: "ClientName" | |
required: false | |
queryParameters: | |
mulesoft: | |
type: number | |
required: true | |
example: 12376 | |
description: record number for seaching the record in the database. | |
responses: | |
200: | |
body: | |
application/json: | |
type: recordName | |
example : {"recordID":1,"desc":"test"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment