| { |
| "kind": "discovery#restDescription", |
| "etag": "c910828f54f3058a3a0c7ed72989a5003e08c5a0", |
| "discoveryVersion": "v1", |
| "id": "_dartpadsupportservices:v1", |
| "name": "_dartpadsupportservices", |
| "version": "v1", |
| "revision": "0", |
| "protocol": "rest", |
| "baseUrl": "/api/_dartpadsupportservices/v1/", |
| "basePath": "/api/_dartpadsupportservices/v1/", |
| "rootUrl": "/", |
| "servicePath": "api/_dartpadsupportservices/v1/", |
| "parameters": {}, |
| "schemas": { |
| "PadSaveObject": { |
| "id": "PadSaveObject", |
| "type": "object", |
| "properties": { |
| "dart": { |
| "type": "string" |
| }, |
| "html": { |
| "type": "string" |
| }, |
| "css": { |
| "type": "string" |
| }, |
| "uuid": { |
| "type": "string" |
| } |
| } |
| }, |
| "UuidContainer": { |
| "id": "UuidContainer", |
| "type": "object", |
| "properties": { |
| "uuid": { |
| "type": "string" |
| } |
| } |
| }, |
| "GistToInternalIdMapping": { |
| "id": "GistToInternalIdMapping", |
| "type": "object", |
| "properties": { |
| "gistId": { |
| "type": "string" |
| }, |
| "internalId": { |
| "type": "string" |
| } |
| } |
| } |
| }, |
| "methods": { |
| "export": { |
| "id": "FileRelayServer.export", |
| "path": "export", |
| "httpMethod": "POST", |
| "description": "Store a gist dataset to be retrieved.", |
| "parameters": {}, |
| "parameterOrder": [], |
| "request": { |
| "$ref": "PadSaveObject" |
| }, |
| "response": { |
| "$ref": "UuidContainer" |
| } |
| }, |
| "pullExportContent": { |
| "id": "FileRelayServer.pullExportContent", |
| "path": "pullExportData", |
| "httpMethod": "POST", |
| "description": "Retrieve a stored gist data set.", |
| "parameters": {}, |
| "parameterOrder": [], |
| "request": { |
| "$ref": "UuidContainer" |
| }, |
| "response": { |
| "$ref": "PadSaveObject" |
| } |
| }, |
| "getUnusedMappingId": { |
| "id": "FileRelayServer.getUnusedMappingId", |
| "path": "getUnusedMappingId", |
| "httpMethod": "GET", |
| "parameters": {}, |
| "parameterOrder": [], |
| "response": { |
| "$ref": "UuidContainer" |
| } |
| }, |
| "storeGist": { |
| "id": "FileRelayServer.storeGist", |
| "path": "storeGist", |
| "httpMethod": "POST", |
| "parameters": {}, |
| "parameterOrder": [], |
| "request": { |
| "$ref": "GistToInternalIdMapping" |
| }, |
| "response": { |
| "$ref": "UuidContainer" |
| } |
| }, |
| "retrieveGist": { |
| "id": "FileRelayServer.retrieveGist", |
| "path": "retrieveGist", |
| "httpMethod": "GET", |
| "parameters": { |
| "id": { |
| "type": "string", |
| "description": "Query parameter: 'id'.", |
| "required": false, |
| "location": "query" |
| } |
| }, |
| "parameterOrder": [], |
| "response": { |
| "$ref": "UuidContainer" |
| } |
| } |
| }, |
| "resources": {} |
| } |