From f8b684d9a86b4078e53b7a4f972f89cd878a584c Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Thu, 4 Apr 2013 19:25:24 +0200 Subject: [PATCH] ReST API: Translate the documentation to WADL Change-Id: Ib1847ee2266d188f198fdf8fb7feb53770d9c1a5 --- .../src/wadls/heat-api/src/heat-api-1.0.wadl | 364 ++++++++++++++++++ .../heat-api/src/samples/stack_create.json | 9 + .../heat-api/src/samples/stack_update.json | 8 + .../src/samples/template_validate.json | 3 + 4 files changed, 384 insertions(+) create mode 100644 doc/docbkx/api-ref/src/wadls/heat-api/src/samples/stack_create.json create mode 100644 doc/docbkx/api-ref/src/wadls/heat-api/src/samples/stack_update.json create mode 100644 doc/docbkx/api-ref/src/wadls/heat-api/src/samples/template_validate.json diff --git a/doc/docbkx/api-ref/src/wadls/heat-api/src/heat-api-1.0.wadl b/doc/docbkx/api-ref/src/wadls/heat-api/src/heat-api-1.0.wadl index 4fe4e31b..146ed7a7 100644 --- a/doc/docbkx/api-ref/src/wadls/heat-api/src/heat-api-1.0.wadl +++ b/doc/docbkx/api-ref/src/wadls/heat-api/src/heat-api-1.0.wadl @@ -7,7 +7,371 @@ xmlns:wadl="http://wadl.dev.java.net/2009/02"> + + + + +

+ The unique identifier of the tenant or account. +

+
+ + + + + + + +

+ The name of an existing stack. +

+ + + + + + + + + + + + + + +

+ The unique identifier of an existing stack. +

+ + + + + + + + + + + + + + + +

+ The name of a resource in the stack. +

+ + + + + + + +
+ + + + + + +

+ The unique identifier of an event related to the resource in the stack. +

+ + + +
+
+ +
+ + + + +
+
+
+ + + + + + + + + +
+
+ + +

Get a list of active stacks.

+
+ + + +
+ + + +

Create a Stack.

+
+ + + +

+ The name of the stack to create. +

+ + + +

+ The URL of the template to instantiate. +

+ This is ignored if the template is supplied inline. +

+ + + +

+ A JSON template to instantiate. +

+ This takes precedence over the Template URL if both are supplied. +

+ + + +

+ User-defined parameter names to pass to the template. +

+ + + +

+ User-defined parameter values to pass to the template. +

+ + + +

+ The timeout for stack creation in minutes. +

+ + + + + + + +
+ + +
+ + + +

Find the canonical URL for a stack with a given name.

+

This operation also works + with verbs other than GET, so you can also use it to perform + PUT and DELETE operations on a current stack. Just set your + client to follow redirects. Note that when redirecting, the + request method should not change, as defined in RFC2626. + However, in many clients the default behaviour is to change the + method to GET when receiving a 302 because this behaviour is + ubiquitous in web browsers.

+
+ + +
+ + + +

Get data about a stack.

+
+ + + +
+ + + +

Retrieve a stack's template.

+
+ + + +
+ + + +

Update a Stack.

+
+ + + +

+ The URL of the template to instantiate. +

+ This is ignored if the template is supplied inline. +

+ + + +

+ A JSON template to instantiate. +

+ This takes precedence over the Template URL if both are supplied. +

+ + + +

+ User-defined parameter names to pass to the template. +

+ + + +

+ User-defined parameter values to pass to the template. +

+ + + +

+ The timeout for stack creation in minutes. +

+ + + + + + + +
+ + +
+ + + +

Delete a stack.

+
+ + +
+ + + +

Update a Stack.

+
+ + + +

+ The URL of the template to instantiate. +

+ This is ignored if the template is supplied inline. +

+ + + +

+ A JSON template to instantiate. +

+ This takes precedence over the Template URL if both are supplied. +

+ + + + + + + +
+ + + +
+ + + +

Get a list of the template resource types that are supported.

+
+ + + +
+ + + +

Find the canonical URL for the resource list of a stack with a given name.

+
+ + +
+ + + +

Get a list of resources in a stack.

+
+ + + +
+ + + +

Get data about a resource.

+
+ + + +
+ + + +

Get data a resource's metadata.

+
+ + + +
+ + + +

Find the canonical URL for the event list of a stack with a given name.

+
+ + +
+ + + +

Get a list of events for a stack.

+
+ + + +
+ + + +

Get a list of events for a stack resource.

+
+ + + +
+ + + +

Get data about an event.

+
+ + + +
+ diff --git a/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/stack_create.json b/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/stack_create.json new file mode 100644 index 00000000..6b8fab10 --- /dev/null +++ b/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/stack_create.json @@ -0,0 +1,9 @@ +{ + "stack_name": "{stack_name}", + "template_url": "{template_url}", + "parameters": { + "param_name-1": "param_value-1", + "param_name-2": "param_value-2" + }, + "timeout_mins": {timeout_mins} +} diff --git a/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/stack_update.json b/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/stack_update.json new file mode 100644 index 00000000..1ef9a7ea --- /dev/null +++ b/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/stack_update.json @@ -0,0 +1,8 @@ +{ + "template_url": "{template_url}", + "parameters": { + "param_name-1": "param_value-1", + "param_name-2": "param_value-2" + }, + "timeout_mins": {timeout_mins} +} diff --git a/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/template_validate.json b/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/template_validate.json new file mode 100644 index 00000000..0a90617f --- /dev/null +++ b/doc/docbkx/api-ref/src/wadls/heat-api/src/samples/template_validate.json @@ -0,0 +1,3 @@ +{ + "template_url": "{template_url}" +} -- 2.45.2