Home | History | Annotate | Download | only in data
      1 {
      2  "kind": "discovery#describeItem",
      3  "name": "zoo",
      4  "version": "v1",
      5  "description": "Zoo API used for testing",
      6  "basePath": "/zoo/",
      7  "batchPath": "batchZoo",
      8  "rootUrl": "https://www.googleapis.com/",
      9  "servicePath": "zoo/v1/",
     10  "rpcPath": "/rpc",
     11  "parameters": {
     12   "alt": {
     13    "type": "string",
     14    "description": "Data format for the response.",
     15    "default": "json",
     16    "enum": [
     17     "json"
     18    ],
     19    "enumDescriptions": [
     20     "Responses with Content-Type of application/json"
     21    ],
     22    "location": "query"
     23   },
     24   "fields": {
     25    "type": "string",
     26    "description": "Selector specifying which fields to include in a partial response.",
     27    "location": "query"
     28   },
     29   "key": {
     30    "type": "string",
     31    "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
     32    "location": "query"
     33   },
     34   "oauth_token": {
     35    "type": "string",
     36    "description": "OAuth 2.0 token for the current user.",
     37    "location": "query"
     38   },
     39   "prettyPrint": {
     40    "type": "boolean",
     41    "description": "Returns response with indentations and line breaks.",
     42    "default": "true",
     43    "location": "query"
     44   },
     45   "quotaUser": {
     46    "type": "string",
     47    "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
     48    "location": "query"
     49   },
     50   "userIp": {
     51    "type": "string",
     52    "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
     53    "location": "query"
     54   }
     55  },
     56  "features": [
     57   "dataWrapper"
     58  ],
     59  "schemas": {
     60   "Animal": {
     61    "id": "Animal",
     62    "type": "object",
     63    "properties": {
     64     "etag": {
     65      "type": "string"
     66     },
     67     "kind": {
     68      "type": "string",
     69      "default": "zoo#animal"
     70     },
     71     "name": {
     72      "type": "string"
     73     },
     74     "photo": {
     75      "type": "object",
     76      "properties": {
     77       "filename": {
     78        "type": "string"
     79       },
     80       "hash": {
     81        "type": "string"
     82       },
     83       "hashAlgorithm": {
     84        "type": "string"
     85       },
     86       "size": {
     87        "type": "integer"
     88       },
     89       "type": {
     90        "type": "string"
     91       }
     92      }
     93     }
     94    }
     95   },
     96   "Animal2": {
     97    "id": "Animal2",
     98    "type": "object",
     99    "properties": {
    100     "kind": {
    101      "type": "string",
    102      "default": "zoo#animal"
    103     },
    104     "name": {
    105      "type": "string"
    106     }
    107    }
    108   },
    109   "AnimalFeed": {
    110    "id": "AnimalFeed",
    111    "type": "object",
    112    "properties": {
    113     "etag": {
    114      "type": "string"
    115     },
    116     "items": {
    117      "type": "array",
    118      "items": {
    119       "$ref": "Animal"
    120      }
    121     },
    122     "kind": {
    123      "type": "string",
    124      "default": "zoo#animalFeed"
    125     }
    126    }
    127   },
    128   "AnimalMap": {
    129    "id": "AnimalMap",
    130    "type": "object",
    131    "properties": {
    132     "etag": {
    133      "type": "string"
    134     },
    135     "animals": {
    136      "type": "object",
    137      "description": "Map of animal id to animal data",
    138      "additionalProperties": {
    139       "$ref": "Animal"
    140      }
    141     },
    142     "kind": {
    143      "type": "string",
    144      "default": "zoo#animalMap"
    145     }
    146    }
    147   },
    148   "LoadFeed": {
    149    "id": "LoadFeed",
    150    "type": "object",
    151    "properties": {
    152     "items": {
    153      "type": "array",
    154      "items": {
    155       "type": "object",
    156       "properties": {
    157        "doubleVal": {
    158         "type": "number"
    159        },
    160        "nullVal": {
    161         "type": "null"
    162        },
    163        "booleanVal": {
    164         "type": "boolean",
    165         "description": "True or False."
    166        },
    167        "anyVal": {
    168         "type": "any",
    169         "description": "Anything will do."
    170        },
    171        "enumVal": {
    172         "type": "string"
    173        },
    174        "kind": {
    175         "type": "string",
    176         "default": "zoo#loadValue"
    177        },
    178        "longVal": {
    179         "type": "integer"
    180        },
    181        "stringVal": {
    182         "type": "string"
    183        }
    184       }
    185      }
    186     },
    187     "kind": {
    188      "type": "string",
    189      "default": "zoo#loadFeed"
    190     }
    191    }
    192   }
    193  },
    194  "methods": {
    195   "query": {
    196    "path": "query",
    197    "id": "bigquery.query",
    198    "httpMethod": "GET",
    199    "parameters": {
    200     "q": {
    201      "type": "string",
    202      "location": "query",
    203      "required": false,
    204      "repeated": false
    205     },
    206     "i": {
    207      "type": "integer",
    208      "location": "query",
    209      "required": false,
    210      "repeated": false,
    211      "minimum": "0",
    212      "maximum": "4294967295",
    213      "default": "20"
    214     },
    215     "n": {
    216      "type": "number",
    217      "location": "query",
    218      "required": false,
    219      "repeated": false
    220     },
    221     "b": {
    222      "type": "boolean",
    223      "location": "query",
    224      "required": false,
    225      "repeated": false
    226     },
    227     "a": {
    228      "type": "any",
    229      "location": "query",
    230      "required": false,
    231      "repeated": false
    232     },
    233     "o": {
    234      "type": "object",
    235      "location": "query",
    236      "required": false,
    237      "repeated": false
    238     },
    239     "e": {
    240      "type": "string",
    241      "location": "query",
    242      "required": false,
    243      "repeated": false,
    244      "enum": [
    245        "foo",
    246        "bar"
    247      ]
    248     },
    249     "er": {
    250       "type": "string",
    251       "location": "query",
    252       "required": false,
    253       "repeated": true,
    254       "enum": [
    255         "one",
    256         "two",
    257         "three"
    258       ]
    259     },
    260     "rr": {
    261      "type": "string",
    262      "location": "query",
    263      "required": false,
    264      "repeated": true,
    265      "pattern": "[a-z]+"
    266     }
    267    }
    268   }
    269  },
    270  "resources": {
    271   "my": {
    272    "resources": {
    273     "favorites": {
    274      "methods": {
    275       "list": {
    276        "path": "favorites/@me/mine",
    277        "id": "zoo.animals.mine",
    278        "httpMethod": "GET",
    279        "parameters": {
    280         "max-results": {
    281           "location": "query",
    282           "required": false
    283         }
    284        }
    285       }
    286      }
    287     }
    288    }
    289   },
    290   "global": {
    291    "resources": {
    292     "print": {
    293      "methods": {
    294       "assert": {
    295        "path": "global/print/assert",
    296        "id": "zoo.animals.mine",
    297        "httpMethod": "GET",
    298        "parameters": {
    299         "max-results": {
    300           "location": "query",
    301           "required": false
    302         }
    303        }
    304       }
    305      }
    306     }
    307    }
    308   },
    309   "animals": {
    310    "methods": {
    311     "crossbreed": {
    312      "path": "animals/crossbreed",
    313      "id": "zoo.animals.crossbreed",
    314      "httpMethod": "POST",
    315      "description": "Cross-breed animals",
    316      "response": {
    317       "$ref": "Animal2"
    318      },
    319      "mediaUpload": {
    320       "accept": [
    321        "image/png"
    322       ],
    323       "protocols": {
    324        "simple": {
    325         "multipart": true,
    326         "path": "upload/activities/{userId}/@self"
    327        },
    328        "resumable": {
    329         "multipart": true,
    330         "path": "upload/activities/{userId}/@self"
    331        }
    332       }
    333      }
    334     },
    335     "delete": {
    336      "path": "animals/{name}",
    337      "id": "zoo.animals.delete",
    338      "httpMethod": "DELETE",
    339      "description": "Delete animals",
    340      "parameters": {
    341       "name": {
    342        "location": "path",
    343        "required": true,
    344        "description": "Name of the animal to delete",
    345        "type": "string"
    346       }
    347      },
    348      "parameterOrder": [
    349       "name"
    350      ]
    351     },
    352     "get": {
    353      "path": "animals/{name}",
    354      "id": "zoo.animals.get",
    355      "httpMethod": "GET",
    356      "description": "Get animals",
    357      "supportsMediaDownload": true,
    358      "parameters": {
    359       "name": {
    360        "location": "path",
    361        "required": true,
    362        "description": "Name of the animal to load",
    363        "type": "string"
    364       },
    365       "projection": {
    366        "location": "query",
    367        "type": "string",
    368        "enum": [
    369         "full"
    370        ],
    371        "enumDescriptions": [
    372         "Include everything"
    373        ]
    374       }
    375      },
    376      "parameterOrder": [
    377       "name"
    378      ],
    379      "response": {
    380       "$ref": "Animal"
    381      }
    382     },
    383     "getmedia": {
    384      "path": "animals/{name}",
    385      "id": "zoo.animals.get",
    386      "httpMethod": "GET",
    387      "description": "Get animals",
    388      "parameters": {
    389       "name": {
    390        "location": "path",
    391        "required": true,
    392        "description": "Name of the animal to load",
    393        "type": "string"
    394       },
    395       "projection": {
    396        "location": "query",
    397        "type": "string",
    398        "enum": [
    399         "full"
    400        ],
    401        "enumDescriptions": [
    402         "Include everything"
    403        ]
    404       }
    405      },
    406      "parameterOrder": [
    407       "name"
    408      ]
    409     },
    410     "insert": {
    411      "path": "animals",
    412      "id": "zoo.animals.insert",
    413      "httpMethod": "POST",
    414      "description": "Insert animals",
    415      "request": {
    416       "$ref": "Animal"
    417      },
    418      "response": {
    419       "$ref": "Animal"
    420      },
    421      "mediaUpload": {
    422       "accept": [
    423        "image/png"
    424       ],
    425       "maxSize": "1KB",
    426       "protocols": {
    427        "simple": {
    428         "multipart": true,
    429         "path": "upload/activities/{userId}/@self"
    430        },
    431        "resumable": {
    432         "multipart": true,
    433         "path": "upload/activities/{userId}/@self"
    434        }
    435       }
    436      }
    437     },
    438     "list": {
    439      "path": "animals",
    440      "id": "zoo.animals.list",
    441      "httpMethod": "GET",
    442      "description": "List animals",
    443      "parameters": {
    444       "max-results": {
    445        "location": "query",
    446        "description": "Maximum number of results to return",
    447        "type": "integer",
    448        "minimum": "0"
    449       },
    450       "name": {
    451        "location": "query",
    452        "description": "Restrict result to animals with this name",
    453        "type": "string"
    454       },
    455       "projection": {
    456        "location": "query",
    457        "type": "string",
    458        "enum": [
    459         "full"
    460        ],
    461        "enumDescriptions": [
    462         "Include absolutely everything"
    463        ]
    464       },
    465       "start-token": {
    466        "location": "query",
    467        "description": "Pagination token",
    468        "type": "string"
    469       }
    470      },
    471      "response": {
    472       "$ref": "AnimalFeed"
    473      }
    474     },
    475     "patch": {
    476      "path": "animals/{name}",
    477      "id": "zoo.animals.patch",
    478      "httpMethod": "PATCH",
    479      "description": "Update animals",
    480      "parameters": {
    481       "name": {
    482        "location": "path",
    483        "required": true,
    484        "description": "Name of the animal to update",
    485        "type": "string"
    486       }
    487      },
    488      "parameterOrder": [
    489       "name"
    490      ],
    491      "request": {
    492       "$ref": "Animal"
    493      },
    494      "response": {
    495       "$ref": "Animal"
    496      }
    497     },
    498     "update": {
    499      "path": "animals/{name}",
    500      "id": "zoo.animals.update",
    501      "httpMethod": "PUT",
    502      "description": "Update animals",
    503      "parameters": {
    504       "name": {
    505        "location": "path",
    506        "description": "Name of the animal to update",
    507        "type": "string"
    508       }
    509      },
    510      "parameterOrder": [
    511       "name"
    512      ],
    513      "request": {
    514       "$ref": "Animal"
    515      },
    516      "response": {
    517       "$ref": "Animal"
    518      }
    519     }
    520    }
    521   },
    522   "load": {
    523    "methods": {
    524     "list": {
    525      "path": "load",
    526      "id": "zoo.load.list",
    527      "httpMethod": "GET",
    528      "response": {
    529       "$ref": "LoadFeed"
    530      }
    531     }
    532    }
    533   },
    534   "loadNoTemplate": {
    535    "methods": {
    536     "list": {
    537      "path": "loadNoTemplate",
    538      "id": "zoo.loadNoTemplate.list",
    539      "httpMethod": "GET"
    540     }
    541    }
    542   },
    543   "scopedAnimals": {
    544    "methods": {
    545     "list": {
    546      "path": "scopedanimals",
    547      "id": "zoo.scopedAnimals.list",
    548      "httpMethod": "GET",
    549      "description": "List animals (scoped)",
    550      "parameters": {
    551       "max-results": {
    552        "location": "query",
    553        "description": "Maximum number of results to return",
    554        "type": "integer",
    555        "minimum": "0"
    556       },
    557       "name": {
    558        "location": "query",
    559        "description": "Restrict result to animals with this name",
    560        "type": "string"
    561       },
    562       "projection": {
    563        "location": "query",
    564        "type": "string",
    565        "enum": [
    566         "full"
    567        ],
    568        "enumDescriptions": [
    569         "Include absolutely everything"
    570        ]
    571       },
    572       "start-token": {
    573        "location": "query",
    574        "description": "Pagination token",
    575        "type": "string"
    576       }
    577      },
    578      "response": {
    579       "$ref": "AnimalFeed"
    580      }
    581     }
    582    }
    583   }
    584  }
    585 }
    586