Skip to content

Instantly share code, notes, and snippets.

@rocketraman
Last active June 15, 2016 13:05
Show Gist options
  • Save rocketraman/1a86bedb4356011444cdd5f512be1f55 to your computer and use it in GitHub Desktop.
Save rocketraman/1a86bedb4356011444cdd5f512be1f55 to your computer and use it in GitHub Desktop.
#%RAML 1.0
title: Test
version: v1
baseUri: http://localhost:8080
types:
GeoPoint:
properties:
coordinates:
type: number[]
example:
coordinates: [100.0, 0.0]
resourceTypes:
base:
get?: &common
headers: &commonheaders
Accept:
description: Is used to set specified media type.
type: string
post?:
headers: *commonheaders
put?:
headers: *commonheaders
delete?:
headers: *commonheaders
item:
type: base
get?:
put?:
responses:
204:
description: Item updated.
headers:
Location:
description: The URI of the updated item.
delete?:
responses:
204:
description: Item removed.
collection:
type: base
get?:
post?:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment