| OLD | NEW |
| (Empty) |
| 1 { | |
| 2 "basePath": "/testing/v1/testapi/v2/", | |
| 3 "baseUrl": "https://example.com/testing/v1/testapi/v2/", | |
| 4 "description": "A testing API", | |
| 5 "discoveryVersion": "v1", | |
| 6 "id": "testapi:v2", | |
| 7 "kind": "discovery#restDescription", | |
| 8 "methods": { | |
| 9 "test": { | |
| 10 "description": "API Test Method", | |
| 11 "httpMethod": "POST", | |
| 12 "id": "test", | |
| 13 "parameterOrder": [ | |
| 14 "value" | |
| 15 ], | |
| 16 "parameters": { | |
| 17 "value": { | |
| 18 "location": "path", | |
| 19 "required": true, | |
| 20 "type": "string" | |
| 21 } | |
| 22 }, | |
| 23 "path": "testMethod/{value}", | |
| 24 "response": { | |
| 25 "$ref": "TestResponse", | |
| 26 "parameterName": "resource" | |
| 27 } | |
| 28 } | |
| 29 }, | |
| 30 "name": "testapi", | |
| 31 "protocol": "rest", | |
| 32 "rootUrl": "https://example.com/testing/v1", | |
| 33 "schemas": { | |
| 34 "TestResponse": { | |
| 35 "description": "Test Method Response", | |
| 36 "id": "TestResponse", | |
| 37 "properties": { | |
| 38 "value": { | |
| 39 "$ref": "ValueType" | |
| 40 } | |
| 41 }, | |
| 42 "type": "object" | |
| 43 } | |
| 44 }, | |
| 45 "servicePath": "testapi/v2/", | |
| 46 "version": "v2" | |
| 47 } | |
| OLD | NEW |