Skip to content

Commit

Permalink
Update api-with-examples.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Aug 15, 2024
1 parent a6bd0df commit 81590a1
Showing 1 changed file with 57 additions and 115 deletions.
172 changes: 57 additions & 115 deletions examples/v3.0/api-with-examples.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: '3.0.0'
openapi: 3.0.0
info:
title: Simple API overview
version: 2.0.0
Expand All @@ -9,45 +9,27 @@ paths:
summary: List API versions
responses:
'200':
description: |-
200 response
description: 200 response
content:
application/json:
examples:
foo:
value:
{
'versions':
[
{
'status': 'CURRENT',
'updated': '2011-01-21T11:33:21Z',
'id': 'v2.0',
'links':
[
{
'href': 'http://127.0.0.1:8774/v2/',
'rel': 'self',
},
],
},
{
'status': 'EXPERIMENTAL',
'updated': '2013-07-23T11:33:21Z',
'id': 'v3.0',
'links':
[
{
'href': 'http://127.0.0.1:8774/v3/',
'rel': 'self',
},
],
},
],
}
versions:
- status: CURRENT
updated: '2011-01-21T11:33:21Z'
id: v2.0
links:
- href: http://127.0.0.1:8774/v2/
rel: self
- status: EXPERIMENTAL
updated: '2013-07-23T11:33:21Z'
id: v3.0
links:
- href: http://127.0.0.1:8774/v3/
rel: self
'300':
description: |-
300 response
description: 300 response
content:
application/json:
examples:
Expand Down Expand Up @@ -85,95 +67,55 @@ paths:
summary: Show API version details
responses:
'200':
description: |-
200 response
description: 200 response
content:
application/json:
examples:
foo:
value:
{
'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://127.0.0.1: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',
},
{
'href': 'http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl',
'type': 'application/vnd.sun.wadl+xml',
'rel': 'describedby',
},
],
},
}
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://127.0.0.1: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
- href: http://docs.openstack.org/api/openstack-compute/2/wadl/os-compute-2.wadl
type: application/vnd.sun.wadl+xml
rel: describedby
'203':
description: |-
203 response
description: 203 response
content:
application/json:
examples:
foo:
value:
{
'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',
},
],
},
}
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

0 comments on commit 81590a1

Please sign in to comment.