Skip to content

Instantly share code, notes, and snippets.

@Brazo
Created December 23, 2015 12:48
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 Brazo/3879a96fe84d45d6ca93 to your computer and use it in GitHub Desktop.
Save Brazo/3879a96fe84d45d6ca93 to your computer and use it in GitHub Desktop.
#%RAML 0.8
title: construction-write-api
version: 1
/parts/{part_id}:
description: Update the part information
put:
body:
application/xml:
example: |
<part>
<item-id>1</item-id>
<type>Skrews</type>
<currency>CHF</currency>
<price>3992</price>
<link rel="self" href="/parts/1" />
</part>
schema: !include put-part-instance-schema.xsd
responses:
204:
/suppliers:
description: add a supplier to a suppliers list resource
post:
body:
application/xml:
example: |
<supplier>
<supplierId></supplierId>
<supplierName>Klein und Gut</supplierName>
<supplierLocation>DE</supplierLocation>
</supplier>
schema: !include post-supplier-instance-schema.xsd
responses:
201:
headers:
Location:
example: http://host.de/suppliers/224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment