Skip to content

Instantly share code, notes, and snippets.

@Brazo
Brazo / cqrs-api.raml
Created December 23, 2015 15:04
CQRS RAML file relating to my blog post series on mulesoft blog site
#%RAML 0.8
title: construction-cqrs-api
version: 1
/parts/{part_id}:
get:
description: Query application behaviour - Returns the price of a part in the currency of the given currency code.
queryParameters:
currency-code:
type: string
#%RAML 0.8
title: construction-write-api
version: 1
/parts/{part_id}:
description: Update the part information
put:
body:
application/xml:
example: |
@Brazo
Brazo / mobile-app-prototype-language.raml
Last active August 29, 2015 14:20
The RAML defining the common language and contract for a mobile application implementation project using an API-first approach.
#%RAML 0.8
title: construction-machine
version: 1
/parts:
/search:
description: The search resource for parts.
get:
description: List all parts in the system when used without query parameters. Query parameters allow powerful depenency searches. For now only one parameter at a time is allowed.
queryParameters:
used-for: