Created
December 23, 2015 12:48
-
-
Save Brazo/3879a96fe84d45d6ca93 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 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