OLD | NEW |
| (Empty) |
1 { | |
2 "basePath": "/_ah/api/test/v1/", | |
3 "baseUrl": "http://example.com/_ah/api/test/v1/", | |
4 "defaultVersion": true, | |
5 "description": "Test Service", | |
6 "discoveryVersion": "v1", | |
7 "id": "test:v1", | |
8 "kind": "discovery#restDescription", | |
9 "methods": { | |
10 "pathreq": { | |
11 "httpMethod": "GET", | |
12 "id": "test.pathreq", | |
13 "parameterOrder": [ | |
14 "Name", | |
15 "Count" | |
16 ], | |
17 "parameters": { | |
18 "Count": { | |
19 "format": "int64", | |
20 "location": "path", | |
21 "required": true, | |
22 "type": "string" | |
23 }, | |
24 "Name": { | |
25 "location": "path", | |
26 "required": true, | |
27 "type": "string" | |
28 } | |
29 }, | |
30 "path": "pathreq/{Name}/{Count}", | |
31 "response": { | |
32 "$ref": "ServiceTestResponse", | |
33 "parameterName": "resource" | |
34 } | |
35 }, | |
36 "post": { | |
37 "httpMethod": "POST", | |
38 "id": "test.post", | |
39 "path": "post", | |
40 "request": { | |
41 "$ref": "ServiceTestPostReq", | |
42 "parameterName": "resource" | |
43 } | |
44 }, | |
45 "queryreq": { | |
46 "httpMethod": "GET", | |
47 "id": "test.queryreq", | |
48 "parameterOrder": [ | |
49 "Name" | |
50 ], | |
51 "parameters": { | |
52 "B": { | |
53 "location": "query", | |
54 "type": "boolean" | |
55 }, | |
56 "B2": { | |
57 "location": "query", | |
58 "type": "boolean" | |
59 }, | |
60 "F": { | |
61 "format": "float", | |
62 "location": "query", | |
63 "type": "number" | |
64 }, | |
65 "I": { | |
66 "format": "int32", | |
67 "location": "query", | |
68 "type": "integer" | |
69 }, | |
70 "Name": { | |
71 "location": "path", | |
72 "required": true, | |
73 "type": "string" | |
74 }, | |
75 "S": { | |
76 "location": "query", | |
77 "type": "string" | |
78 }, | |
79 "count": { | |
80 "format": "int64", | |
81 "location": "query", | |
82 "type": "string" | |
83 } | |
84 }, | |
85 "path": "queryreq/{Name}" | |
86 } | |
87 }, | |
88 "name": "test", | |
89 "protocol": "rest", | |
90 "rootUrl": "http://example.com/_ah/api/", | |
91 "schemas": { | |
92 "ServiceTestPostReq": { | |
93 "id": "ServiceTestPostReq", | |
94 "properties": { | |
95 "S": { | |
96 "type": "string" | |
97 }, | |
98 "T": { | |
99 "type": "string" | |
100 } | |
101 }, | |
102 "type": "object" | |
103 }, | |
104 "ServiceTestResponse": { | |
105 "id": "ServiceTestResponse", | |
106 "properties": { | |
107 "count": { | |
108 "format": "int64", | |
109 "type": "string" | |
110 } | |
111 }, | |
112 "type": "object" | |
113 } | |
114 }, | |
115 "servicePath": "test/v1/", | |
116 "version": "v1" | |
117 } | |
OLD | NEW |