Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Hello World Products API in ALPS just like the examples here: http://apievangelist.com/2014/03/08/hello-world-product-api-with-blueprint-raml-and-swagger/

View products-alps.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
<alps version="1.0">
<link rel="help" href="http://example.org/documentation/products.html" />
<doc>
This is a prototype product API.
</doc>
<!-- transitions -->
<descriptor id="item" type="safe" rt="#product">
<doc>Retrieve A Single Product</doc>
</descriptor>
<descriptor id="collection" type="safe" rt="#product">
<doc>Provides access to all products</doc>
</descriptor>
<descriptor id="search" type="safe" rt="#product">
<doc>Provides access to all products</doc>
<descriptor href="#id" />
</descriptor>
<descriptor id="edit" type="idempotent" rt="#product">
<doc>Updates A Product</doc>
<descriptor href="#product" />
</descriptor>
<descriptor id="create" type="unsafe" rt="#product">
<doc>Allows the creation of a new product</doc>
<descriptor href="#product" />
</descriptor>
<descriptor id="delete" type="idempotent">
<doc>Delete A Product </doc>
</descriptor>
<!-- product -->
<descriptor id="product" type="semantic">
<descriptor id="id" />
<descriptor id="name" />
<descriptor id="description" />
<descriptor id="url" />
<descriptor id="thumbnailUrl" />
<descriptor id="keywords" />
<descriptor id="brand" />
<descriptor id="color" />
<descriptor id="itemCondition" />
<descriptor id="manufacturer" />
<descriptor id="model" />
<descriptor id="sku" />
<descriptor id="weight" />
<descriptor id="width" />
<descriptor id="height" />
<descriptor id="depth" />
</descriptor>
</alps>
Owner

There is a JSON variant, too. Check it all out here: http://alps.io

This is really intuitive. Interesting approach. I'm going to update that post, just to keep on mine, and everyone elses list to learn more about.

Owner

@kinlane:

Very cool. thanks! feel free to ping me anytime and we can talk about this. Otherwise, I'll see you in Amsterdam!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.