Replaces WADL references with links to API Reference
- Moves detailed info to the Compute API v2 WADL itself - Alleviates the following issues: * Params are not documented in this output due to tooling * When a WADL was broken, this deliverable breaks also * WADL contributions are low * It's difficult to train contributors how to embed WADL references Change-Id: Id56da05c0409ed432dfdd0f5de799f5ed5e2e47c
This commit is contained in:
parent
85d058c8a9
commit
2ab480d970
File diff suppressed because it is too large
Load Diff
14
v2/pom.xml
14
v2/pom.xml
@ -69,34 +69,34 @@
|
||||
<postProcess>
|
||||
<!-- New stuff -->
|
||||
<mkdir
|
||||
dir="${basedir}/target/docbkx/webhelp/api/openstack-compute/2/"/>
|
||||
dir="${basedir}/target/docbkx/webhelp/api/openstack-compute/v2/"/>
|
||||
<!-- Copies schema to a folder and styling for the schemas so a browser can display them -->
|
||||
<copy
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/2/xsd">
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/v2/xsd">
|
||||
<fileset dir="${basedir}/xsd">
|
||||
<include name="**/*.*"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/2/xslt">
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/v2/xslt">
|
||||
<fileset dir="${basedir}/xslt">
|
||||
<include name="**/*.*"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/2/style">
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/v2/style">
|
||||
<fileset dir="${basedir}/style">
|
||||
<include name="**/*.*"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/2/js">
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/v2/js">
|
||||
<fileset dir="${basedir}/js">
|
||||
<include name="**/*.*"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/2/samples">
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/v2/samples">
|
||||
<fileset
|
||||
dir="${basedir}/samples">
|
||||
<include name="**/*.*"/>
|
||||
@ -104,7 +104,7 @@
|
||||
</copy>
|
||||
<!-- Copies wadl to a folder -->
|
||||
<copy
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/2/">
|
||||
todir="${basedir}/target/docbkx/webhelp/api/openstack-compute/v2/">
|
||||
<fileset dir="${basedir}/">
|
||||
<include name="**/*.wadl"/>
|
||||
</fileset>
|
||||
|
@ -1,44 +1,44 @@
|
||||
{
|
||||
"choices": [
|
||||
{
|
||||
"id": "v1.0",
|
||||
"status": "DEPRECATED",
|
||||
"links": [
|
||||
{
|
||||
"rel": "self",
|
||||
"href": "http://servers.api.openstack.org/v1.0/1234/servers/52415800-8b69-11e0-9b19-734f6af67565"
|
||||
}
|
||||
],
|
||||
"media-types": [
|
||||
{
|
||||
"base": "application/xml",
|
||||
"type": "application/vnd.openstack.compute.v1.0+xml"
|
||||
},
|
||||
{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.compute.v1.0+json"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "v2",
|
||||
"status": "CURRENT",
|
||||
"links": [
|
||||
{
|
||||
"rel": "self",
|
||||
"href": "http://servers.api.openstack.org/v2/1234/servers/52415800-8b69-11e0-9b19-734f6af67565"
|
||||
}
|
||||
],
|
||||
"media-types": [
|
||||
{
|
||||
"base": "application/xml",
|
||||
"type": "application/vnd.openstack.compute.v2+xml"
|
||||
},
|
||||
{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.compute.v2+json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"choices":[
|
||||
{
|
||||
"id":"v1.0",
|
||||
"status":"DEPRECATED",
|
||||
"links":[
|
||||
{
|
||||
"rel":"self",
|
||||
"href":"http://servers.api.openstack.org/v1.0/1234/servers/52415800-8b69-11e0-9b19-734f6af67565"
|
||||
}
|
||||
],
|
||||
"media-types":[
|
||||
{
|
||||
"base":"application/xml",
|
||||
"type":"application/vnd.openstack.compute.v1.0+xml"
|
||||
},
|
||||
{
|
||||
"base":"application/json",
|
||||
"type":"application/vnd.openstack.compute.v1.0+json"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id":"v2",
|
||||
"status":"CURRENT",
|
||||
"links":[
|
||||
{
|
||||
"rel":"self",
|
||||
"href":"http://servers.api.openstack.org/v2/1234/servers/52415800-8b69-11e0-9b19-734f6af67565"
|
||||
}
|
||||
],
|
||||
"media-types":[
|
||||
{
|
||||
"base":"application/xml",
|
||||
"type":"application/vnd.openstack.compute.v2+xml"
|
||||
},
|
||||
{
|
||||
"base":"application/json",
|
||||
"type":"application/vnd.openstack.compute.v2+json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"computeFault" : {
|
||||
"code" : 500,
|
||||
"message" : "Fault!",
|
||||
"details" : "Error Details..."
|
||||
}
|
||||
}
|
||||
"computeFault":{
|
||||
"code":500,
|
||||
"message":"Fault!",
|
||||
"details":"Error Details..."
|
||||
}
|
||||
}
|
@ -1,20 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<image
|
||||
xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734f5736d2a2"
|
||||
name="My Server Backup"
|
||||
created="2010-08-10T12:00:00Z"
|
||||
<image xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734f5736d2a2" name="My Server Backup" created="2010-08-10T12:00:00Z"
|
||||
status="ERROR" progress="89">
|
||||
<server id="52415800-8b69-11e0-9b19-734f335aa7b3" />
|
||||
<server id="52415800-8b69-11e0-9b19-734f335aa7b3"/>
|
||||
<fault code="500">
|
||||
<message>An internal error occurred</message>
|
||||
<details>Error details</details>
|
||||
</fault>
|
||||
<atom:link
|
||||
rel="self"
|
||||
<atom:link rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2"/>
|
||||
<atom:link
|
||||
rel="bookmark"
|
||||
<atom:link rel="bookmark"
|
||||
href="http://servers.api.openstack.org/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2"/>
|
||||
</image>
|
||||
</image>
|
@ -1,17 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<image
|
||||
xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
name="CentOS 5.2">
|
||||
<image xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734f6f006e54" name="CentOS 5.2">
|
||||
<metadata>
|
||||
<meta key="ImageVersion">1.5</meta>
|
||||
<meta key="ImageType">Gold</meta>
|
||||
<atom:link
|
||||
rel="next"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f6f006e54/meta?marker=ImageType"/>
|
||||
<atom:link rel="next"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f6f006e54/meta?marker=ImageType"
|
||||
/>
|
||||
</metadata>
|
||||
<atom:link
|
||||
rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f6f006e54"/>
|
||||
</image>
|
||||
<atom:link rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
/>
|
||||
</image>
|
@ -1,16 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<image
|
||||
xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734f5736d2a2"
|
||||
name="My Server Backup">
|
||||
<atom:link
|
||||
rel="self"
|
||||
<image xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734f5736d2a2" name="My Server Backup">
|
||||
<atom:link rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2"/>
|
||||
<atom:link
|
||||
rel="bookmark"
|
||||
<atom:link rel="bookmark"
|
||||
href="http://servers.api.openstack.org/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2"/>
|
||||
<atom:link
|
||||
rel="alternate" type="application/vnd.openstack.image"
|
||||
<atom:link rel="alternate" type="application/vnd.openstack.image"
|
||||
href="http://glance.api.openstack.org/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2"/>
|
||||
</image>
|
||||
</image>
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<images xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<images xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<image id="52415800-8b69-11e0-9b19-734f6f006e54" name="CentOS 5.2">
|
||||
<atom:link rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
@ -9,4 +8,4 @@
|
||||
<atom:link rel="next"
|
||||
href="http://servers.api.openstack.org/v2/1234/images?limit=1&marker=52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
/>
|
||||
</images>
|
||||
</images>
|
@ -1,11 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<images xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<images xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<image id="52415800-8b69-11e0-9b19-734f5736d2a2" name="My Server Backup">
|
||||
<atom:link
|
||||
rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2"/>
|
||||
<atom:link rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f5736d2a2"/>
|
||||
</image>
|
||||
<atom:link rel="next"
|
||||
href="http://servers.api.openstack.org/v2/1234/images?limit=1&marker=52415800-8b69-11e0-9b19-734f5736d2a2"/>
|
||||
</images>
|
||||
href="http://servers.api.openstack.org/v2/1234/images?limit=1&marker=52415800-8b69-11e0-9b19-734f5736d2a2"
|
||||
/>
|
||||
</images>
|
@ -1,10 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<images xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<image id="52415800-8b69-11e0-9b19-734f6ff7c475"
|
||||
name="Backup 2">
|
||||
<atom:link
|
||||
rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f6ff7c475"/>
|
||||
</image>
|
||||
</images>
|
||||
<images xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<image id="52415800-8b69-11e0-9b19-734f6ff7c475" name="Backup 2">
|
||||
<atom:link rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/images/52415800-8b69-11e0-9b19-734f6ff7c475"
|
||||
/>
|
||||
</image>
|
||||
</images>
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"itemNotFound" : {
|
||||
"code" : 404,
|
||||
"message" : "Not Found",
|
||||
"details" : "Error Details..."
|
||||
}
|
||||
}
|
||||
"itemNotFound":{
|
||||
"code":404,
|
||||
"message":"Not Found",
|
||||
"details":"Error Details..."
|
||||
}
|
||||
}
|
@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<itemNotFound
|
||||
xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
code="404">
|
||||
<itemNotFound xmlns="http://docs.openstack.org/compute/api/v1.1" code="404">
|
||||
<message>Not Found</message>
|
||||
<details>Error Details...</details>
|
||||
</itemNotFound>
|
||||
</itemNotFound>
|
@ -1,8 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<overLimit
|
||||
xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
code="413"
|
||||
retryAfter="2010-08-01T00:00:00Z">
|
||||
<overLimit xmlns="http://docs.openstack.org/compute/api/v1.1" code="413"
|
||||
retryAfter="2010-08-01T00:00:00Z">
|
||||
<message>OverLimit Retry...</message>
|
||||
<details>Error Details...</details>
|
||||
</overLimit>
|
||||
</overLimit>
|
@ -1,21 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734f0000ffff"
|
||||
tenant_id="1234" user_id="5678"
|
||||
name="sample-server" status="ERROR"
|
||||
created="2010-08-10T12:00:00Z"
|
||||
progress="66" hostId="e4d909c290d0fb1ca068ffafff22cbd0">
|
||||
<image id="52415800-8b69-11e0-9b19-734f6f007777" />
|
||||
<flavor id="52415800-8b69-11e0-9b19-734f216543fd" />
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734f0000ffff" tenant_id="1234" user_id="5678" name="sample-server"
|
||||
status="ERROR" created="2010-08-10T12:00:00Z" progress="66"
|
||||
hostId="e4d909c290d0fb1ca068ffafff22cbd0">
|
||||
<image id="52415800-8b69-11e0-9b19-734f6f007777"/>
|
||||
<flavor id="52415800-8b69-11e0-9b19-734f216543fd"/>
|
||||
<fault code="404" created="2010-08-10T11:59:59Z">
|
||||
<message>Could not find image 52415800-8b69-11e0-9b19-734f6f007777</message>
|
||||
<details>Fault details</details>
|
||||
</fault>
|
||||
<atom:link
|
||||
rel="self"
|
||||
<atom:link rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/servers/52415800-8b69-11e0-9b19-734f000004d2"/>
|
||||
<atom:link
|
||||
rel="bookmark"
|
||||
<atom:link rel="bookmark"
|
||||
href="http://servers.api.openstack.org/1234/servers/52415800-8b69-11e0-9b19-734f000004d2"/>
|
||||
</server>
|
||||
</server>
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"server" : {
|
||||
"name" : "new-server-test",
|
||||
"imageRef" : "52415800-8b69-11e0-9b19-734f6f006e54",
|
||||
"flavorRef" : "52415800-8b69-11e0-9b19-734f1195ff37",
|
||||
"accessIPv4" : "67.23.10.132"
|
||||
}
|
||||
}
|
||||
"server":{
|
||||
"name":"new-server-test",
|
||||
"imageRef":"52415800-8b69-11e0-9b19-734f6f006e54",
|
||||
"flavorRef":"52415800-8b69-11e0-9b19-734f1195ff37",
|
||||
"accessIPv4":"67.23.10.132"
|
||||
}
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1" name="test"
|
||||
accessIPv4="67.23.10.132"
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1" name="test" accessIPv4="67.23.10.132"
|
||||
imageRef="52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
flavorRef="52415800-8b69-11e0-9b19-734f1195ff37"/>
|
||||
flavorRef="52415800-8b69-11e0-9b19-734f1195ff37"/>
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"server" : {
|
||||
"name" : "new-server-test",
|
||||
"imageRef" : "52415800-8b69-11e0-9b19-734f6f006e54",
|
||||
"flavorRef" : "52415800-8b69-11e0-9b19-734f1195ff37",
|
||||
"accessIPv4" : "67.23.10.132",
|
||||
"accessIPv6" : "::babe:67.23.10.132"
|
||||
}
|
||||
}
|
||||
"server":{
|
||||
"name":"new-server-test",
|
||||
"imageRef":"52415800-8b69-11e0-9b19-734f6f006e54",
|
||||
"flavorRef":"52415800-8b69-11e0-9b19-734f1195ff37",
|
||||
"accessIPv4":"67.23.10.132",
|
||||
"accessIPv6":"::babe:67.23.10.132"
|
||||
}
|
||||
}
|
@ -1,7 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
name="test"
|
||||
accessIPv4="67.23.10.132"
|
||||
accessIPv6="::babe:67.23.10.132"
|
||||
imageRef="52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
flavorRef="52415800-8b69-11e0-9b19-734f1195ff37" />
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1" name="test" accessIPv4="67.23.10.132"
|
||||
accessIPv6="::babe:67.23.10.132" imageRef="52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
flavorRef="52415800-8b69-11e0-9b19-734f1195ff37"/>
|
@ -13,4 +13,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -1,24 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
name="new-server-test"
|
||||
imageRef="52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
flavorRef="52415800-8b69-11e0-9b19-734f1195ff37"
|
||||
>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
name="new-server-test" imageRef="52415800-8b69-11e0-9b19-734f6f006e54"
|
||||
flavorRef="52415800-8b69-11e0-9b19-734f1195ff37">
|
||||
<metadata>
|
||||
<meta key="My Server Name">Apache1</meta>
|
||||
</metadata>
|
||||
<personality>
|
||||
<file path="/etc/banner.txt">
|
||||
ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp
|
||||
dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k
|
||||
IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs
|
||||
c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g
|
||||
QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo
|
||||
ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv
|
||||
dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy
|
||||
c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6
|
||||
b25zLiINCg0KLVJpY2hhcmQgQmFjaA==
|
||||
</file>
|
||||
<file path="/etc/banner.txt"> ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp
|
||||
dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k
|
||||
IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs
|
||||
c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g
|
||||
QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo
|
||||
ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv
|
||||
dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy
|
||||
c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6
|
||||
b25zLiINCg0KLVJpY2hhcmQgQmFjaA== </file>
|
||||
</personality>
|
||||
</server>
|
||||
</server>
|
@ -1,22 +0,0 @@
|
||||
{
|
||||
"server":{
|
||||
"flavorRef":"http://openstack.example.com/openstack/flavors/1",
|
||||
"imageRef":"http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
|
||||
"metadata":{
|
||||
"My Server Name":"Apache1"
|
||||
},
|
||||
"name":"new-server-test",
|
||||
"personality":[
|
||||
{
|
||||
"contents":"ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBpdCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5kIGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVsc2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4gQnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRoZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlvdSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vyc2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6b25zLiINCg0KLVJpY2hhcmQgQmFjaA==",
|
||||
"path":"/etc/banner.txt"
|
||||
}
|
||||
],
|
||||
"networks":[
|
||||
{
|
||||
"uuid":"c6a48469-4638-4346-b755-6e66ed7abdff",
|
||||
"fixed_ip":"10.0.0.10"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
imageRef="http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b"
|
||||
flavorRef="http://openstack.example.com/openstack/flavors/1"
|
||||
name="new-server-test">
|
||||
<metadata>
|
||||
<meta key="My Server Name">Apache1</meta>
|
||||
</metadata>
|
||||
<personality>
|
||||
<file path="/etc/banner.txt">
|
||||
ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp
|
||||
dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k
|
||||
IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs
|
||||
c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g
|
||||
QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo
|
||||
ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv
|
||||
dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy
|
||||
c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6
|
||||
b25zLiINCg0KLVJpY2hhcmQgQmFjaA== </file>
|
||||
</personality>
|
||||
<networks>
|
||||
<network uuid="c6a48469-4638-4346-b755-6e66ed7abdff" fixed_ip="10.0.0.10"/>
|
||||
</networks>
|
||||
</server>
|
@ -1,16 +1,16 @@
|
||||
{
|
||||
"server" : {
|
||||
"id" : "52415800-8b69-11e0-9b19-734fcece0043",
|
||||
"name" : "my-server",
|
||||
"links": [
|
||||
{
|
||||
"rel" : "self",
|
||||
"href" : "http://servers.api.openstack.org/v2/1234/servers/52415800-8b69-11e0-9b19-734fcece0043"
|
||||
},
|
||||
{
|
||||
"rel" : "bookmark",
|
||||
"href" : "http://servers.api.openstack.org/1234/servers/52415800-8b69-11e0-9b19-734fcece0043"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
"server":{
|
||||
"id":"52415800-8b69-11e0-9b19-734fcece0043",
|
||||
"name":"my-server",
|
||||
"links":[
|
||||
{
|
||||
"rel":"self",
|
||||
"href":"http://servers.api.openstack.org/v2/1234/servers/52415800-8b69-11e0-9b19-734fcece0043"
|
||||
},
|
||||
{
|
||||
"rel":"bookmark",
|
||||
"href":"http://servers.api.openstack.org/1234/servers/52415800-8b69-11e0-9b19-734fcece0043"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -1,11 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734fcece0043" name="my-server">
|
||||
<atom:link
|
||||
rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/servers/52415800-8b69-11e0-9b19-734fcece0043"/>
|
||||
<atom:link
|
||||
rel="bookmark"
|
||||
href="http://servers.api.openstack.org/1234/servers/52415800-8b69-11e0-9b19-734fcece0043"/>
|
||||
</server>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
id="52415800-8b69-11e0-9b19-734fcece0043" name="my-server">
|
||||
<atom:link rel="self"
|
||||
href="http://servers.api.openstack.org/v2/1234/servers/52415800-8b69-11e0-9b19-734fcece0043"/>
|
||||
<atom:link rel="bookmark"
|
||||
href="http://servers.api.openstack.org/1234/servers/52415800-8b69-11e0-9b19-734fcece0043"/>
|
||||
</server>
|
@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title type="text">About This Version</title>
|
||||
<updated>2011-01-21T11:33:21-06:00</updated>
|
||||
<id>http://servers.api.openstack.org/v1.0/</id>
|
||||
<author><name>Rackspace</name><uri>http://www.rackspace.com/</uri></author>
|
||||
<link rel="self" href="http://servers.api.openstack.org/v1.0/"/>
|
||||
<entry>
|
||||
<id>http://servers.api.openstack.org/v1.0/</id>
|
||||
<title type="text">Version v2</title>
|
||||
<updated>2011-01-21T11:33:21-06:00</updated>
|
||||
<link rel="self" href="http://servers.api.openstack.org/v1.0/"/>
|
||||
<link rel="describedby" type="application/pdf"
|
||||
href="http://docs.rackspacecloud.com/servers/api/v2/cs-devguide-20110125.pdf"/>
|
||||
<link rel="describedby" type="application/vnd.sun.wadl+xml"
|
||||
href="http://docs.rackspacecloud.com/servers/api/v2/application.wadl"/>
|
||||
<content type="text">Version v2 CURRENT (2011-01-21T11:33:21-06:00)</content>
|
||||
</entry>
|
||||
</feed>
|
33
v2/samples/version-get-resp.json
Normal file
33
v2/samples/version-get-resp.json
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"version":{
|
||||
"status":"CURRENT",
|
||||
"updated":"2011-01-21T11:33:21Z",
|
||||
"media-types":[
|
||||
{
|
||||
"base":"application/xml",
|
||||
"type":"application/vnd.openstack.compute+xml;version=2"
|
||||
},
|
||||
{
|
||||
"base":"application/json",
|
||||
"type":"application/vnd.openstack.compute+json;version=2"
|
||||
}
|
||||
],
|
||||
"id":"v2.0",
|
||||
"links":[
|
||||
{
|
||||
"href":"http://23.253.228.211:8774/v2/",
|
||||
"rel":"self"
|
||||
},
|
||||
{
|
||||
"href":"http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf",
|
||||
"type":"application/pdf",
|
||||
"rel":"describedby"
|
||||
},
|
||||
{
|
||||
"href":"http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
|
||||
"type":"application/vnd.sun.wadl+xml",
|
||||
"rel":"describedby"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
14
v2/samples/version-get-resp.xml
Normal file
14
v2/samples/version-get-resp.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<version xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/common/api/v1.0"
|
||||
status="CURRENT" updated="2011-01-21T11:33:21Z" id="v2.0">
|
||||
<media-types>
|
||||
<media-type base="application/xml" type="application/vnd.openstack.compute+xml;version=2"/>
|
||||
<media-type base="application/json" type="application/vnd.openstack.compute+json;version=2"
|
||||
/>
|
||||
</media-types>
|
||||
<atom:link href="http://23.253.228.211:8774/v2/" rel="self"/>
|
||||
<atom:link href="http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf"
|
||||
type="application/pdf" rel="describedby"/>
|
||||
<atom:link href="http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl"
|
||||
type="application/vnd.sun.wadl+xml" rel="describedby"/>
|
||||
</version>
|
@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title type="text">Available API Versions</title>
|
||||
<updated>2010-12-12T18:30:02.25Z</updated>
|
||||
<id>http://servers.api.openstack.org/</id>
|
||||
<author><name>Rackspace</name><uri>http://www.rackspace.com/</uri></author>
|
||||
<link rel="self" href="http://servers.api.openstack.org/"/>
|
||||
<entry>
|
||||
<id>http://servers.api.openstack.org/v2/</id>
|
||||
<title type="text">Version v2</title>
|
||||
<updated>2010-12-12T18:30:02.25Z</updated>
|
||||
<link rel="self" href="http://servers.api.openstack.org/v2/"/>
|
||||
<content type="text">Version v2 CURRENT (2010-12-12T18:30:02.25Z)</content>
|
||||
</entry>
|
||||
<entry>
|
||||
<id>http://servers.api.openstack.org/v1.0/</id>
|
||||
<title type="text">Version v1.0</title>
|
||||
<updated>2009-10-09T11:30:00Z</updated>
|
||||
<link rel="self" href="http://servers.api.openstack.org/v1.0/"/>
|
||||
<content type="text">Version v1.0 DEPRECATED (2009-10-09T11:30:00Z)</content>
|
||||
</entry>
|
||||
</feed>
|
33
v2/samples/versions-get-resp.json
Normal file
33
v2/samples/versions-get-resp.json
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"version": {
|
||||
"status": "CURRENT",
|
||||
"updated": "2011-01-21T11:33:21Z",
|
||||
"media-types": [
|
||||
{
|
||||
"base": "application/xml",
|
||||
"type": "application/vnd.openstack.compute+xml;version=2"
|
||||
},
|
||||
{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.compute+json;version=2"
|
||||
}
|
||||
],
|
||||
"id": "v2.0",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://23.253.228.211:8774/v2/",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"href": "http://docs.openstack.org/api/openstack-compute/2/os-compute-devguide-2.pdf",
|
||||
"type": "application/pdf",
|
||||
"rel": "describedby"
|
||||
},
|
||||
{
|
||||
"href": "http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl",
|
||||
"type": "application/vnd.sun.wadl+xml",
|
||||
"rel": "describedby"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
16
v2/samples/versions-get-resp.xml
Normal file
16
v2/samples/versions-get-resp.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<choices xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/common/api/v1.0">
|
||||
<version status="EXPERIMENTAL" id="v3.0">
|
||||
<media-types>
|
||||
<media-type base="application/json" type="application/vnd.openstack.compute+json;version=3"/>
|
||||
</media-types>
|
||||
<atom:link href="http://23.253.228.211:8774/v3/v2.xml" rel="self"/>
|
||||
</version>
|
||||
<version status="CURRENT" id="v2.0">
|
||||
<media-types>
|
||||
<media-type base="application/xml" type="application/vnd.openstack.compute+xml;version=2"/>
|
||||
<media-type base="application/json" type="application/vnd.openstack.compute+json;version=2"/>
|
||||
</media-types>
|
||||
<atom:link href="http://23.253.228.211:8774/v2/v2.xml" rel="self"/>
|
||||
</version>
|
||||
</choices>
|
Loading…
x
Reference in New Issue
Block a user