Skip to content

Instantly share code, notes, and snippets.

@sdeepaks
Created November 30, 2017 09:58
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 sdeepaks/1703eb8da48158765dee74644248075b to your computer and use it in GitHub Desktop.
Save sdeepaks/1703eb8da48158765dee74644248075b to your computer and use it in GitHub Desktop.
#%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