blob: 32c6d96a18841750270a0cd528af3dc66a771542 [file] [log] [blame]
Eiichi Aikawaaf0e0f42014-03-17 18:31:07 +09001# Copyright 2014 NEC Corporation. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15version = {
16 'status_code': [200],
17 'response_body': {
18 'type': 'object',
19 'properties': {
20 'version': {
21 'type': 'object',
22 'properties': {
23 'id': {'type': 'string'},
24 'links': {
25 'type': 'array',
26 'items': {
27 'type': 'object',
28 'properties': {
29 'href': {'type': 'string', 'format': 'uri'},
30 'rel': {'type': 'string'},
31 'type': {'type': 'string'}
32 },
33 'required': ['href', 'rel']
34 }
35 },
36 'media-types': {
37 'type': 'array',
38 'items': {
39 'type': 'object',
40 'properties': {
41 'base': {'type': 'string'},
42 'type': {'type': 'string'}
43 },
44 'required': ['base', 'type']
45 }
46 },
47 'status': {'type': 'string'},
48 'updated': {'type': 'string', 'format': 'date-time'}
49 },
50 'required': ['id', 'links', 'media-types', 'status', 'updated']
51 }
52 },
53 'required': ['version']
54 }
55}