aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorCraig Citro <craigcitro@google.com>2014-05-05 12:09:05 -0700
committerCraig Citro <craigcitro@google.com>2014-05-05 12:09:05 -0700
commita97121f0d61ad1faddbc4c5b41ad40e27de9930d (patch)
tree33a51a7317a7ad7969ddfe3931e11434602e8578 /tests/data
parent22b692c0a94d9cf0c42be5dec80303fba18f5366 (diff)
downloadoauth2client-a97121f0d61ad1faddbc4c5b41ad40e27de9930d.tar.gz
Drop the googleapiclient copy, and cleanup tests.
This drops the duplication of `googleapiclient` inside the `oauth2client` repo, which involved several steps: * Delete the actual `googleapiclient` files. * Remove the duplicated tests, since they're also hosted in the `googleapiclient` repo. * Add a copy of three testing-related functions back in, since they're also used in the tests here. This was `HttpMock` and `HttpMockSequence` in `tests/http_mock.py`, and `assertUrisEqual` in `tests/test_oauth2client.py`. Once that was done, I did just the tiniest bit of cleanup in the tests: * Remove the now-superfluous `_oauth2client_` in the filenames for all the tests. * Drop unneeded files from `data/`. * Add `py26` back as a `tox` testing environment. * Temporarily disable the `appengine` test for both environments. In a coming PR, I'll actually clean up the GAE test to work correctly in the presence or absence of `dev_appserver`, but this isn't a bad first step. (In particular, my next PR will just add a `.travis.yml`.)
Diffstat (limited to 'tests/data')
-rwxr-xr-xtests/data/create-private-keys.sh13
-rw-r--r--tests/data/latitude.json241
-rw-r--r--tests/data/malformed.json1
-rw-r--r--tests/data/moderator.json1665
-rw-r--r--tests/data/plus.json1220
-rw-r--r--tests/data/small.jpgbin313 -> 0 bytes
-rw-r--r--tests/data/small.pngbin190 -> 0 bytes
-rw-r--r--tests/data/smiley.pngbin1305 -> 0 bytes
-rw-r--r--tests/data/tasks.json663
-rw-r--r--tests/data/zoo.json584
10 files changed, 0 insertions, 4387 deletions
diff --git a/tests/data/create-private-keys.sh b/tests/data/create-private-keys.sh
deleted file mode 100755
index aaec580..0000000
--- a/tests/data/create-private-keys.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \
- -keyout privatekey.pem -out publickey.pem \
- -subj "/CN=unit-tests"
-
-openssl pkcs12 -export -out privatekey.p12 \
- -inkey privatekey.pem -in publickey.pem \
- -name "key" -passout pass:notasecret
-
-openssl pkcs12 -in privatekey.p12 \
- -nodes -nocerts -passout pass:notasecret \
- -passin pass:notasecret > pem_from_pkcs12.pem \ No newline at end of file
diff --git a/tests/data/latitude.json b/tests/data/latitude.json
deleted file mode 100644
index 7717f90..0000000
--- a/tests/data/latitude.json
+++ /dev/null
@@ -1,241 +0,0 @@
-{
- "kind": "discovery#restDescription",
- "id": "latitude:v1",
- "name": "latitude",
- "version": "v1",
- "description": "Google Latitude API",
- "icons": {
- "x16": "http://www.google.com/images/icons/product/search-16.gif",
- "x32": "http://www.google.com/images/icons/product/search-32.gif"
- },
- "labels": [
- "labs"
- ],
- "protocol": "rest",
- "basePath": "/latitude/v1/",
- "rootUrl": "https://www.googleapis.com/",
- "servicePath": "latitude/v1/",
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/latitude": {
- "description": "Manage your current location and location history"
- }
- }
- }
- },
- "features": [
- "dataWrapper"
- ],
- "schemas": {
- "LatitudeCurrentlocationResourceJson": {
- "$ref": "Location"
- },
- "Location": {
- "id": "Location",
- "type": "object",
- "properties": {
- "accuracy": {
- "type": "any"
- },
- "activityId": {
- "type": "any"
- },
- "altitude": {
- "type": "any"
- },
- "altitudeAccuracy": {
- "type": "any"
- },
- "heading": {
- "type": "any"
- },
- "kind": {
- "type": "string",
- "default": "latitude#location"
- },
- "latitude": {
- "type": "any"
- },
- "longitude": {
- "type": "any"
- },
- "placeid": {
- "type": "any"
- },
- "speed": {
- "type": "any"
- },
- "timestampMs": {
- "type": "any"
- }
- }
- },
- "LocationFeed": {
- "id": "LocationFeed",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "$ref": "Location"
- }
- },
- "kind": {
- "type": "string",
- "default": "latitude#locationFeed"
- }
- }
- }
- },
- "resources": {
- "currentLocation": {
- "methods": {
- "delete": {
- "id": "latitude.currentLocation.delete",
- "path": "currentLocation",
- "httpMethod": "DELETE",
- "description": "Deletes the authenticated user's current location.",
- "scopes": [
- "https://www.googleapis.com/auth/latitude"
- ]
- },
- "get": {
- "id": "latitude.currentLocation.get",
- "path": "currentLocation",
- "httpMethod": "GET",
- "description": "Returns the authenticated user's current location.",
- "parameters": {
- "granularity": {
- "type": "string",
- "description": "Granularity of the requested location.",
- "location": "query"
- }
- },
- "response": {
- "$ref": "LatitudeCurrentlocationResourceJson"
- },
- "scopes": [
- "https://www.googleapis.com/auth/latitude"
- ]
- },
- "insert": {
- "id": "latitude.currentLocation.insert",
- "path": "currentLocation",
- "httpMethod": "POST",
- "description": "Updates or creates the user's current location.",
- "request": {
- "$ref": "LatitudeCurrentlocationResourceJson"
- },
- "response": {
- "$ref": "LatitudeCurrentlocationResourceJson"
- },
- "scopes": [
- "https://www.googleapis.com/auth/latitude"
- ]
- }
- }
- },
- "location": {
- "methods": {
- "delete": {
- "id": "latitude.location.delete",
- "path": "location/{locationId}",
- "httpMethod": "DELETE",
- "description": "Deletes a location from the user's location history.",
- "parameters": {
- "locationId": {
- "type": "string",
- "description": "Timestamp of the location to delete (ms since epoch).",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "locationId"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/latitude"
- ]
- },
- "get": {
- "id": "latitude.location.get",
- "path": "location/{locationId}",
- "httpMethod": "GET",
- "description": "Reads a location from the user's location history.",
- "parameters": {
- "granularity": {
- "type": "string",
- "description": "Granularity of the location to return.",
- "location": "query"
- },
- "locationId": {
- "type": "string",
- "description": "Timestamp of the location to read (ms since epoch).",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "locationId"
- ],
- "response": {
- "$ref": "Location"
- },
- "scopes": [
- "https://www.googleapis.com/auth/latitude"
- ]
- },
- "insert": {
- "id": "latitude.location.insert",
- "path": "location",
- "httpMethod": "POST",
- "description": "Inserts or updates a location in the user's location history.",
- "request": {
- "$ref": "Location"
- },
- "response": {
- "$ref": "Location"
- },
- "scopes": [
- "https://www.googleapis.com/auth/latitude"
- ]
- },
- "list": {
- "id": "latitude.location.list",
- "path": "location",
- "httpMethod": "GET",
- "description": "Lists the user's location history.",
- "parameters": {
- "granularity": {
- "type": "string",
- "description": "Granularity of the requested locations.",
- "location": "query"
- },
- "max-results": {
- "type": "string",
- "description": "Maximum number of locations to return.",
- "location": "query"
- },
- "max-time": {
- "type": "string",
- "description": "Maximum timestamp of locations to return (ms since epoch).",
- "location": "query"
- },
- "min-time": {
- "type": "string",
- "description": "Minimum timestamp of locations to return (ms since epoch).",
- "location": "query"
- }
- },
- "response": {
- "$ref": "LocationFeed"
- },
- "scopes": [
- "https://www.googleapis.com/auth/latitude"
- ]
- }
- }
- }
- }
-}
diff --git a/tests/data/malformed.json b/tests/data/malformed.json
deleted file mode 100644
index 98232c6..0000000
--- a/tests/data/malformed.json
+++ /dev/null
@@ -1 +0,0 @@
-{
diff --git a/tests/data/moderator.json b/tests/data/moderator.json
deleted file mode 100644
index 55a7483..0000000
--- a/tests/data/moderator.json
+++ /dev/null
@@ -1,1665 +0,0 @@
-{
- "kind": "discovery#restDescription",
- "id": "moderator:v1",
- "name": "moderator",
- "version": "v1",
- "description": "Moderator API",
- "icons": {
- "x16": "http://www.google.com/images/icons/product/moderator-32.png",
- "x32": "http://www.google.com/images/icons/product/search-32.gif"
- },
- "documentationLink": "http://code.google.com/apis/moderator/v1/using_rest.html",
- "labels": [
- "labs"
- ],
- "protocol": "rest",
- "basePath": "/moderator/v1/",
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/moderator": {
- "description": "Manage your activity in Google Moderator"
- }
- }
- }
- },
- "features": [
- "dataWrapper"
- ],
- "schemas": {
- "ModeratorTopicsResourcePartial": {
- "id": "ModeratorTopicsResourcePartial",
- "type": "object",
- "properties": {
- "id": {
- "type": "object",
- "properties": {
- "seriesId": {
- "type": "integer"
- },
- "topicId": {
- "type": "integer"
- }
- }
- }
- }
- },
- "ModeratorVotesResourcePartial": {
- "id": "ModeratorVotesResourcePartial",
- "type": "object",
- "properties": {
- "flag": {
- "type": "string"
- },
- "vote": {
- "type": "string"
- }
- }
- },
- "Profile": {
- "id": "Profile",
- "type": "object",
- "properties": {
- "attribution": {
- "type": "object",
- "properties": {
- "avatarUrl": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- },
- "geo": {
- "type": "object",
- "properties": {
- "latitude": {
- "type": "number"
- },
- "location": {
- "type": "string"
- },
- "longitude": {
- "type": "number"
- }
- }
- },
- "location": {
- "type": "string"
- }
- }
- },
- "id": {
- "type": "object",
- "properties": {
- "user": {
- "type": "string"
- }
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#profile"
- }
- }
- },
- "Series": {
- "id": "Series",
- "type": "object",
- "properties": {
- "anonymousSubmissionAllowed": {
- "type": "boolean"
- },
- "counters": {
- "type": "object",
- "properties": {
- "anonymousSubmissions": {
- "type": "integer"
- },
- "minusVotes": {
- "type": "integer"
- },
- "noneVotes": {
- "type": "integer"
- },
- "plusVotes": {
- "type": "integer"
- },
- "submissions": {
- "type": "integer"
- },
- "users": {
- "type": "integer"
- },
- "videoSubmissions": {
- "type": "integer"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "id": {
- "type": "object",
- "properties": {
- "seriesId": {
- "type": "integer"
- }
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#series"
- },
- "name": {
- "type": "string"
- },
- "numTopics": {
- "type": "integer"
- },
- "videoSubmissionAllowed": {
- "type": "boolean"
- }
- }
- },
- "SeriesList": {
- "id": "SeriesList",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "$ref": "Series"
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#seriesList"
- }
- }
- },
- "Submission": {
- "id": "Submission",
- "type": "object",
- "properties": {
- "attachmentUrl": {
- "type": "string"
- },
- "attribution": {
- "type": "object",
- "properties": {
- "avatarUrl": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- },
- "location": {
- "type": "string"
- }
- }
- },
- "author": {
- "type": "string"
- },
- "counters": {
- "type": "object",
- "properties": {
- "minusVotes": {
- "type": "integer"
- },
- "noneVotes": {
- "type": "integer"
- },
- "plusVotes": {
- "type": "integer"
- }
- }
- },
- "created": {
- "type": "integer"
- },
- "geo": {
- "type": "object",
- "properties": {
- "latitude": {
- "type": "number"
- },
- "location": {
- "type": "string"
- },
- "longitude": {
- "type": "number"
- }
- }
- },
- "id": {
- "type": "object",
- "properties": {
- "seriesId": {
- "type": "integer"
- },
- "submissionId": {
- "type": "integer"
- }
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#submission"
- },
- "parentSubmissionId": {
- "type": "object",
- "properties": {
- "seriesId": {
- "type": "integer"
- },
- "submissionId": {
- "type": "integer"
- }
- }
- },
- "text": {
- "type": "string"
- },
- "topics": {
- "type": "array",
- "items": {
- "$ref": "ModeratorTopicsResourcePartial"
- }
- },
- "translations": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "lang": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- }
- }
- },
- "vote": {
- "$ref": "ModeratorVotesResourcePartial"
- }
- }
- },
- "SubmissionList": {
- "id": "SubmissionList",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "$ref": "Submission"
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#submissionList"
- }
- }
- },
- "Tag": {
- "id": "Tag",
- "type": "object",
- "properties": {
- "id": {
- "type": "object",
- "properties": {
- "seriesId": {
- "type": "integer"
- },
- "submissionId": {
- "type": "integer"
- },
- "tagId": {
- "type": "string"
- }
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#tag"
- },
- "text": {
- "type": "string"
- }
- }
- },
- "TagList": {
- "id": "TagList",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "$ref": "Tag"
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#tagList"
- }
- }
- },
- "Topic": {
- "id": "Topic",
- "type": "object",
- "properties": {
- "counters": {
- "type": "object",
- "properties": {
- "minusVotes": {
- "type": "integer"
- },
- "noneVotes": {
- "type": "integer"
- },
- "plusVotes": {
- "type": "integer"
- },
- "submissions": {
- "type": "integer"
- },
- "users": {
- "type": "integer"
- },
- "videoSubmissions": {
- "type": "integer"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "featuredSubmission": {
- "type": "any"
- },
- "id": {
- "type": "object",
- "properties": {
- "seriesId": {
- "type": "integer"
- },
- "topicId": {
- "type": "integer"
- }
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#topic"
- },
- "name": {
- "type": "string"
- },
- "presenter": {
- "type": "string"
- },
- "rules": {
- "type": "object",
- "properties": {
- "submissions": {
- "type": "object",
- "properties": {
- "close": {
- "type": "integer"
- },
- "open": {
- "type": "integer"
- }
- }
- },
- "votes": {
- "type": "object",
- "properties": {
- "close": {
- "type": "integer"
- },
- "open": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
- },
- "Topic2": {
- "id": "Topic2",
- "type": "object",
- "properties": {
- "counters": {
- "type": "object",
- "properties": {
- "minusVotes": {
- "type": "integer"
- },
- "noneVotes": {
- "type": "integer"
- },
- "plusVotes": {
- "type": "integer"
- },
- "submissions": {
- "type": "integer"
- },
- "users": {
- "type": "integer"
- },
- "videoSubmissions": {
- "type": "integer"
- }
- }
- },
- "description": {
- "type": "string"
- },
- "featuredSubmission": {
- "$ref": "Submission"
- },
- "id": {
- "type": "object",
- "properties": {
- "seriesId": {
- "type": "integer"
- },
- "topicId": {
- "type": "integer"
- }
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#topic"
- },
- "name": {
- "type": "string"
- },
- "presenter": {
- "type": "string"
- },
- "rules": {
- "type": "object",
- "properties": {
- "submissions": {
- "type": "object",
- "properties": {
- "close": {
- "type": "integer"
- },
- "open": {
- "type": "integer"
- }
- }
- },
- "votes": {
- "type": "object",
- "properties": {
- "close": {
- "type": "integer"
- },
- "open": {
- "type": "integer"
- }
- }
- }
- }
- }
- }
- },
- "TopicList": {
- "id": "TopicList",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "$ref": "Topic"
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#topicList"
- }
- }
- },
- "Vote": {
- "id": "Vote",
- "type": "object",
- "properties": {
- "flag": {
- "type": "string"
- },
- "id": {
- "type": "object",
- "properties": {
- "seriesId": {
- "type": "integer"
- },
- "submissionId": {
- "type": "integer"
- }
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#vote"
- },
- "vote": {
- "type": "string"
- }
- }
- },
- "VoteList": {
- "id": "VoteList",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "$ref": "Vote"
- }
- },
- "kind": {
- "type": "string",
- "default": "moderator#voteList"
- }
- }
- }
- },
- "resources": {
- "featured": {
- "resources": {
- "series": {
- "methods": {
- "list": {
- "id": "moderator.featured.series.list",
- "path": "series/featured",
- "httpMethod": "GET",
- "description": "Lists the featured series.",
- "response": {
- "$ref": "SeriesList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- }
- }
- },
- "global": {
- "resources": {
- "series": {
- "methods": {
- "list": {
- "id": "moderator.global.series.list",
- "path": "search",
- "httpMethod": "GET",
- "description": "Searches the public series and returns the search results.",
- "parameters": {
- "max-results": {
- "type": "integer",
- "description": "Maximum number of results to return.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "q": {
- "type": "string",
- "description": "Search query.",
- "location": "query"
- },
- "start-index": {
- "type": "integer",
- "description": "Index of the first result to be retrieved.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- }
- },
- "response": {
- "$ref": "SeriesList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- }
- }
- },
- "my": {
- "resources": {
- "series": {
- "methods": {
- "list": {
- "id": "moderator.my.series.list",
- "path": "series/@me/mine",
- "httpMethod": "GET",
- "description": "Lists all series created by the authenticated user.",
- "response": {
- "$ref": "SeriesList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- }
- }
- },
- "myrecent": {
- "resources": {
- "series": {
- "methods": {
- "list": {
- "id": "moderator.myrecent.series.list",
- "path": "series/@me/recent",
- "httpMethod": "GET",
- "description": "Lists the series the authenticated user has visited.",
- "response": {
- "$ref": "SeriesList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- }
- }
- },
- "profiles": {
- "methods": {
- "get": {
- "id": "moderator.profiles.get",
- "path": "profiles/@me",
- "httpMethod": "GET",
- "description": "Returns the profile information for the authenticated user.",
- "response": {
- "$ref": "Profile"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "update": {
- "id": "moderator.profiles.update",
- "path": "profiles/@me",
- "httpMethod": "PUT",
- "description": "Updates the profile information for the authenticated user.",
- "request": {
- "$ref": "Profile"
- },
- "response": {
- "$ref": "Profile"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- },
- "responses": {
- "methods": {
- "insert": {
- "id": "moderator.responses.insert",
- "path": "series/{seriesId}/topics/{topicId}/submissions/{parentSubmissionId}/responses",
- "httpMethod": "POST",
- "description": "Inserts a response for the specified submission in the specified topic within the specified series.",
- "parameters": {
- "anonymous": {
- "type": "boolean",
- "description": "Set to true to mark the new submission as anonymous.",
- "location": "query"
- },
- "parentSubmissionId": {
- "type": "integer",
- "description": "The decimal ID of the parent Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "topicId": {
- "type": "integer",
- "description": "The decimal ID of the Topic within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "topicId",
- "parentSubmissionId"
- ],
- "request": {
- "$ref": "Submission"
- },
- "response": {
- "$ref": "Submission"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "list": {
- "id": "moderator.responses.list",
- "path": "series/{seriesId}/submissions/{submissionId}/responses",
- "httpMethod": "GET",
- "description": "Lists or searches the responses for the specified submission within the specified series and returns the search results.",
- "parameters": {
- "author": {
- "type": "string",
- "description": "Restricts the results to submissions by a specific author.",
- "location": "query"
- },
- "hasAttachedVideo": {
- "type": "boolean",
- "description": "Specifies whether to restrict to submissions that have videos attached.",
- "location": "query"
- },
- "max-results": {
- "type": "integer",
- "description": "Maximum number of results to return.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "q": {
- "type": "string",
- "description": "Search query.",
- "location": "query"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "sort": {
- "type": "string",
- "description": "Sort order.",
- "location": "query"
- },
- "start-index": {
- "type": "integer",
- "description": "Index of the first result to be retrieved.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "submissionId": {
- "type": "integer",
- "description": "The decimal ID of the Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "submissionId"
- ],
- "response": {
- "$ref": "SubmissionList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- },
- "series": {
- "methods": {
- "get": {
- "id": "moderator.series.get",
- "path": "series/{seriesId}",
- "httpMethod": "GET",
- "description": "Returns the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId"
- ],
- "response": {
- "$ref": "Series"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "insert": {
- "id": "moderator.series.insert",
- "path": "series",
- "httpMethod": "POST",
- "description": "Inserts a new series.",
- "request": {
- "$ref": "Series"
- },
- "response": {
- "$ref": "Series"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "list": {
- "id": "moderator.series.list",
- "path": "series",
- "httpMethod": "GET",
- "description": "Searches the series and returns the search results.",
- "parameters": {
- "max-results": {
- "type": "integer",
- "description": "Maximum number of results to return.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "q": {
- "type": "string",
- "description": "Search query.",
- "location": "query"
- },
- "start-index": {
- "type": "integer",
- "description": "Index of the first result to be retrieved.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- }
- },
- "response": {
- "$ref": "SeriesList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "update": {
- "id": "moderator.series.update",
- "path": "series/{seriesId}",
- "httpMethod": "PUT",
- "description": "Updates the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId"
- ],
- "request": {
- "$ref": "Series"
- },
- "response": {
- "$ref": "Series"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- },
- "resources": {
- "responses": {
- "methods": {
- "list": {
- "id": "moderator.series.responses.list",
- "path": "series/{seriesId}/responses",
- "httpMethod": "GET",
- "description": "Searches the responses for the specified series and returns the search results.",
- "parameters": {
- "author": {
- "type": "string",
- "description": "Restricts the results to submissions by a specific author.",
- "location": "query"
- },
- "hasAttachedVideo": {
- "type": "boolean",
- "description": "Specifies whether to restrict to submissions that have videos attached.",
- "location": "query"
- },
- "max-results": {
- "type": "integer",
- "description": "Maximum number of results to return.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "q": {
- "type": "string",
- "description": "Search query.",
- "location": "query"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "sort": {
- "type": "string",
- "description": "Sort order.",
- "location": "query"
- },
- "start-index": {
- "type": "integer",
- "description": "Index of the first result to be retrieved.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- }
- },
- "parameterOrder": [
- "seriesId"
- ],
- "response": {
- "$ref": "SeriesList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- },
- "submissions": {
- "methods": {
- "list": {
- "id": "moderator.series.submissions.list",
- "path": "series/{seriesId}/submissions",
- "httpMethod": "GET",
- "description": "Searches the submissions for the specified series and returns the search results.",
- "parameters": {
- "author": {
- "type": "string",
- "description": "Restricts the results to submissions by a specific author.",
- "location": "query"
- },
- "hasAttachedVideo": {
- "type": "boolean",
- "description": "Specifies whether to restrict to submissions that have videos attached.",
- "location": "query"
- },
- "includeVotes": {
- "type": "boolean",
- "description": "Specifies whether to include the current user's vote",
- "location": "query"
- },
- "lang": {
- "type": "string",
- "description": "The language code for the language the client prefers resuls in.",
- "location": "query"
- },
- "max-results": {
- "type": "integer",
- "description": "Maximum number of results to return.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "q": {
- "type": "string",
- "description": "Search query.",
- "location": "query"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "sort": {
- "type": "string",
- "description": "Sort order.",
- "location": "query"
- },
- "start-index": {
- "type": "integer",
- "description": "Index of the first result to be retrieved.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- }
- },
- "parameterOrder": [
- "seriesId"
- ],
- "response": {
- "$ref": "SubmissionList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- }
- }
- },
- "submissions": {
- "methods": {
- "get": {
- "id": "moderator.submissions.get",
- "path": "series/{seriesId}/submissions/{submissionId}",
- "httpMethod": "GET",
- "description": "Returns the specified submission within the specified series.",
- "parameters": {
- "includeVotes": {
- "type": "boolean",
- "description": "Specifies whether to include the current user's vote",
- "location": "query"
- },
- "lang": {
- "type": "string",
- "description": "The language code for the language the client prefers resuls in.",
- "location": "query"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "submissionId": {
- "type": "integer",
- "description": "The decimal ID of the Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "submissionId"
- ],
- "response": {
- "$ref": "Submission"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "insert": {
- "id": "moderator.submissions.insert",
- "path": "series/{seriesId}/topics/{topicId}/submissions",
- "httpMethod": "POST",
- "description": "Inserts a new submission in the specified topic within the specified series.",
- "parameters": {
- "anonymous": {
- "type": "boolean",
- "description": "Set to true to mark the new submission as anonymous.",
- "location": "query"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "topicId": {
- "type": "integer",
- "description": "The decimal ID of the Topic within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "topicId"
- ],
- "request": {
- "$ref": "Submission"
- },
- "response": {
- "$ref": "Submission"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- },
- "tags": {
- "methods": {
- "delete": {
- "id": "moderator.tags.delete",
- "path": "series/{seriesId}/submissions/{submissionId}/tags/{tagId}",
- "httpMethod": "DELETE",
- "description": "Deletes the specified tag from the specified submission within the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "submissionId": {
- "type": "integer",
- "description": "The decimal ID of the Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "tagId": {
- "type": "string",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "submissionId",
- "tagId"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "insert": {
- "id": "moderator.tags.insert",
- "path": "series/{seriesId}/submissions/{submissionId}/tags",
- "httpMethod": "POST",
- "description": "Inserts a new tag for the specified submission within the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "submissionId": {
- "type": "integer",
- "description": "The decimal ID of the Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "submissionId"
- ],
- "request": {
- "$ref": "Tag"
- },
- "response": {
- "$ref": "Tag"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "list": {
- "id": "moderator.tags.list",
- "path": "series/{seriesId}/submissions/{submissionId}/tags",
- "httpMethod": "GET",
- "description": "Lists all tags for the specified submission within the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "submissionId": {
- "type": "integer",
- "description": "The decimal ID of the Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "submissionId"
- ],
- "response": {
- "$ref": "TagList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- },
- "topics": {
- "methods": {
- "get": {
- "id": "moderator.topics.get",
- "path": "series/{seriesId}/topics/{topicId}",
- "httpMethod": "GET",
- "description": "Returns the specified topic from the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "topicId": {
- "type": "integer",
- "description": "The decimal ID of the Topic within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "topicId"
- ],
- "response": {
- "$ref": "Topic2"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "insert": {
- "id": "moderator.topics.insert",
- "path": "series/{seriesId}/topics",
- "httpMethod": "POST",
- "description": "Inserts a new topic into the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId"
- ],
- "request": {
- "$ref": "Topic"
- },
- "response": {
- "$ref": "Topic"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "list": {
- "id": "moderator.topics.list",
- "path": "series/{seriesId}/topics",
- "httpMethod": "GET",
- "description": "Searches the topics within the specified series and returns the search results.",
- "parameters": {
- "max-results": {
- "type": "integer",
- "description": "Maximum number of results to return.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "mode": {
- "type": "string",
- "location": "query"
- },
- "q": {
- "type": "string",
- "description": "Search query.",
- "location": "query"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "start-index": {
- "type": "integer",
- "description": "Index of the first result to be retrieved.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- }
- },
- "parameterOrder": [
- "seriesId"
- ],
- "response": {
- "$ref": "TopicList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "update": {
- "id": "moderator.topics.update",
- "path": "series/{seriesId}/topics/{topicId}",
- "httpMethod": "PUT",
- "description": "Updates the specified topic within the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "topicId": {
- "type": "integer",
- "description": "The decimal ID of the Topic within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "topicId"
- ],
- "request": {
- "$ref": "Topic"
- },
- "response": {
- "$ref": "Topic"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- },
- "resources": {
- "submissions": {
- "methods": {
- "list": {
- "id": "moderator.topics.submissions.list",
- "path": "series/{seriesId}/topics/{topicId}/submissions",
- "httpMethod": "GET",
- "description": "Searches the submissions for the specified topic within the specified series and returns the search results.",
- "parameters": {
- "author": {
- "type": "string",
- "description": "Restricts the results to submissions by a specific author.",
- "location": "query"
- },
- "hasAttachedVideo": {
- "type": "boolean",
- "description": "Specifies whether to restrict to submissions that have videos attached.",
- "location": "query"
- },
- "includeVotes": {
- "type": "boolean",
- "description": "Specifies whether to include the current user's vote",
- "location": "query"
- },
- "max-results": {
- "type": "integer",
- "description": "Maximum number of results to return.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "q": {
- "type": "string",
- "description": "Search query.",
- "location": "query"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "sort": {
- "type": "string",
- "description": "Sort order.",
- "location": "query"
- },
- "start-index": {
- "type": "integer",
- "description": "Index of the first result to be retrieved.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "topicId": {
- "type": "integer",
- "description": "The decimal ID of the Topic within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "topicId"
- ],
- "response": {
- "$ref": "SubmissionList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- }
- }
- },
- "votes": {
- "methods": {
- "get": {
- "id": "moderator.votes.get",
- "path": "series/{seriesId}/submissions/{submissionId}/votes/@me",
- "httpMethod": "GET",
- "description": "Returns the votes by the authenticated user for the specified submission within the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "submissionId": {
- "type": "integer",
- "description": "The decimal ID of the Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "userId": {
- "type": "string",
- "location": "query"
- }
- },
- "parameterOrder": [
- "seriesId",
- "submissionId"
- ],
- "response": {
- "$ref": "Vote"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "insert": {
- "id": "moderator.votes.insert",
- "path": "series/{seriesId}/submissions/{submissionId}/votes/@me",
- "httpMethod": "POST",
- "description": "Inserts a new vote by the authenticated user for the specified submission within the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "submissionId": {
- "type": "integer",
- "description": "The decimal ID of the Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- }
- },
- "parameterOrder": [
- "seriesId",
- "submissionId"
- ],
- "request": {
- "$ref": "Vote"
- },
- "response": {
- "$ref": "Vote"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "list": {
- "id": "moderator.votes.list",
- "path": "series/{seriesId}/votes/@me",
- "httpMethod": "GET",
- "description": "Lists the votes by the authenticated user for the given series.",
- "parameters": {
- "max-results": {
- "type": "integer",
- "description": "Maximum number of results to return.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- },
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "start-index": {
- "type": "integer",
- "description": "Index of the first result to be retrieved.",
- "minimum": "0",
- "maximum": "4294967295",
- "location": "query"
- }
- },
- "parameterOrder": [
- "seriesId"
- ],
- "response": {
- "$ref": "VoteList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- },
- "update": {
- "id": "moderator.votes.update",
- "path": "series/{seriesId}/submissions/{submissionId}/votes/@me",
- "httpMethod": "PUT",
- "description": "Updates the votes by the authenticated user for the specified submission within the specified series.",
- "parameters": {
- "seriesId": {
- "type": "integer",
- "description": "The decimal ID of the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "submissionId": {
- "type": "integer",
- "description": "The decimal ID of the Submission within the Series.",
- "required": true,
- "minimum": "0",
- "maximum": "4294967295",
- "location": "path"
- },
- "userId": {
- "type": "string",
- "location": "query"
- }
- },
- "parameterOrder": [
- "seriesId",
- "submissionId"
- ],
- "request": {
- "$ref": "Vote"
- },
- "response": {
- "$ref": "Vote"
- },
- "scopes": [
- "https://www.googleapis.com/auth/moderator"
- ]
- }
- }
- }
- }
-}
diff --git a/tests/data/plus.json b/tests/data/plus.json
deleted file mode 100644
index 36d3ae9..0000000
--- a/tests/data/plus.json
+++ /dev/null
@@ -1,1220 +0,0 @@
-{
- "kind": "discovery#restDescription",
- "id": "plus:v1",
- "name": "plus",
- "version": "v1",
- "title": "Google+ API",
- "description": "The Google+ API enables developers to build on top of the Google+ platform.",
- "icons": {
- "x16": "http://www.google.com/images/icons/product/gplus-16.png",
- "x32": "http://www.google.com/images/icons/product/gplus-32.png"
- },
- "documentationLink": "http://developers.google.com/+/api/",
- "labels": [
- "labs"
- ],
- "protocol": "rest",
- "basePath": "/plus/v1/",
- "rootUrl": "https://www.googleapis.com/",
- "servicePath": "plus/v1/",
- "parameters": {
- "alt": {
- "type": "string",
- "description": "Data format for the response.",
- "default": "json",
- "enum": [
- "json"
- ],
- "enumDescriptions": [
- "Responses with Content-Type of application/json"
- ],
- "location": "query"
- },
- "fields": {
- "type": "string",
- "description": "Selector specifying which fields to include in a partial response.",
- "location": "query"
- },
- "key": {
- "type": "string",
- "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.",
- "location": "query"
- },
- "oauth_token": {
- "type": "string",
- "description": "OAuth 2.0 token for the current user.",
- "location": "query"
- },
- "prettyPrint": {
- "type": "boolean",
- "description": "Returns response with indentations and line breaks.",
- "default": "true",
- "location": "query"
- },
- "quotaUser": {
- "type": "string",
- "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.",
- "location": "query"
- },
- "userIp": {
- "type": "string",
- "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
- "location": "query"
- }
- },
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/plus.me": {
- "description": "Know who you are on Google"
- }
- }
- }
- },
- "schemas": {
- "Acl": {
- "id": "Acl",
- "type": "object",
- "properties": {
- "description": {
- "type": "string",
- "description": "Description of the access granted, suitable for display."
- },
- "items": {
- "type": "array",
- "description": "The list of access entries.",
- "items": {
- "$ref": "PlusAclentryResource"
- }
- },
- "kind": {
- "type": "string",
- "description": "Identifies this resource as a collection of access controls. Value: \"plus#acl\".",
- "default": "plus#acl"
- }
- }
- },
- "Activity": {
- "id": "Activity",
- "type": "object",
- "properties": {
- "access": {
- "$ref": "Acl",
- "description": "Identifies who has access to see this activity."
- },
- "actor": {
- "type": "object",
- "description": "The person who performed this activity.",
- "properties": {
- "displayName": {
- "type": "string",
- "description": "The name of the actor, suitable for display."
- },
- "id": {
- "type": "string",
- "description": "The ID of the actor's person resource."
- },
- "image": {
- "type": "object",
- "description": "The image representation of the actor.",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side."
- }
- }
- },
- "url": {
- "type": "string",
- "description": "The link to the actor's Google profile."
- }
- }
- },
- "address": {
- "type": "string",
- "description": "Street address where this activity occurred."
- },
- "annotation": {
- "type": "string",
- "description": "Additional content added by the person who shared this activity, applicable only when resharing an activity."
- },
- "crosspostSource": {
- "type": "string",
- "description": "If this activity is a crosspost from another system, this property specifies the ID of the original activity."
- },
- "geocode": {
- "type": "string",
- "description": "Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated."
- },
- "id": {
- "type": "string",
- "description": "The ID of this activity."
- },
- "kind": {
- "type": "string",
- "description": "Identifies this resource as an activity. Value: \"plus#activity\".",
- "default": "plus#activity"
- },
- "object": {
- "type": "object",
- "description": "The object of this activity.",
- "properties": {
- "actor": {
- "type": "object",
- "description": "If this activity's object is itself another activity (for example, when a person reshares an activity), this property specifies the original activity's actor.",
- "properties": {
- "displayName": {
- "type": "string",
- "description": "The original actor's name, suitable for display."
- },
- "id": {
- "type": "string",
- "description": "ID of the original actor."
- },
- "image": {
- "type": "object",
- "description": "The image representation of the original actor.",
- "properties": {
- "url": {
- "type": "string",
- "description": "A URL that points to a thumbnail photo of the original actor."
- }
- }
- },
- "url": {
- "type": "string",
- "description": "A link to the original actor's Google profile."
- }
- }
- },
- "attachments": {
- "type": "array",
- "description": "The media objects attached to this activity.",
- "items": {
- "type": "object",
- "properties": {
- "categories": {
- "type": "array",
- "description": "Specifies zero or more categories the attachment belongs to.",
- "items": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string",
- "description": "The category label, suitable for display (e.g. \"album cover\")."
- },
- "schema": {
- "type": "string",
- "description": "Domain of schema, e.g. http://google.com."
- },
- "term": {
- "type": "string",
- "description": "The tag, e.g. album."
- }
- }
- }
- },
- "content": {
- "type": "string",
- "description": "If the attachment is an article, this property contains a snippet of text from the article."
- },
- "contentsource": {
- "type": "object",
- "description": "If the attachment is audio, the link to the content.",
- "properties": {
- "type": {
- "type": "string",
- "description": "Media type of the link."
- },
- "url": {
- "type": "string",
- "description": "URL of the link."
- }
- }
- },
- "displayName": {
- "type": "string",
- "description": "The title of the attachment (such as a photo caption or an article title)."
- },
- "embed": {
- "type": "object",
- "description": "If the attachment is a video, the embeddable link.",
- "properties": {
- "type": {
- "type": "string",
- "description": "Media type of the link."
- },
- "url": {
- "type": "string",
- "description": "URL of the link."
- }
- }
- },
- "fullImage": {
- "type": "object",
- "description": "The full image url for photo attachments.",
- "properties": {
- "height": {
- "type": "integer",
- "description": "The height, in pixels, of the linked resource.",
- "format": "uint32"
- },
- "type": {
- "type": "string",
- "description": "Media type of the link."
- },
- "url": {
- "type": "string",
- "description": "URL of the link."
- },
- "width": {
- "type": "integer",
- "description": "The width, in pixels, of the linked resource.",
- "format": "uint32"
- }
- }
- },
- "id": {
- "type": "string",
- "description": "The ID of the media object's resource."
- },
- "image": {
- "type": "object",
- "description": "The preview image for photos or videos.",
- "properties": {
- "height": {
- "type": "integer",
- "description": "The height, in pixels, of the linked resource.",
- "format": "uint32"
- },
- "type": {
- "type": "string",
- "description": "Media type of the link."
- },
- "url": {
- "type": "string",
- "description": "URL of the link."
- },
- "width": {
- "type": "integer",
- "description": "The width, in pixels, of the linked resource.",
- "format": "uint32"
- }
- }
- },
- "objectType": {
- "type": "string",
- "description": "The type of media object. Possible values are: \n- \"photo\" - A photo. \n- \"video\" - A video. \n- \"article\" - An article, specified by a link."
- },
- "url": {
- "type": "string",
- "description": "The link to the attachment, should be of type text/html."
- }
- }
- }
- },
- "content": {
- "type": "string",
- "description": "The HTML-formatted content, suitable for display. When creating or updating an activity, this value must be supplied as plain text in the request. If successful, the response will contain the HTML-formatted content. When updating an activity, use originalContent as the starting value, then assign the updated text to this property."
- },
- "id": {
- "type": "string",
- "description": "The ID of the object. When resharing an activity, this is the ID of the activity being reshared."
- },
- "objectType": {
- "type": "string",
- "description": "The type of the object. Possible values are: \n- \"note\" - Textual content. \n- \"activity\" - A Google+ activity."
- },
- "originalContent": {
- "type": "string",
- "description": "The content (text) as provided by the author, stored without any HTML formatting. When updating an activity's content, use the value of originalContent as the starting point from which to make edits."
- },
- "plusoners": {
- "type": "object",
- "description": "People who +1'd this activity.",
- "properties": {
- "selfLink": {
- "type": "string",
- "description": "The URL for the collection of people who +1'd this activity."
- },
- "totalItems": {
- "type": "integer",
- "description": "Total number of people who +1'd this activity.",
- "format": "uint32"
- }
- }
- },
- "replies": {
- "type": "object",
- "description": "Comments in reply to this activity.",
- "properties": {
- "selfLink": {
- "type": "string",
- "description": "The URL for the collection of comments in reply to this activity."
- },
- "totalItems": {
- "type": "integer",
- "description": "Total number of comments on this activity.",
- "format": "uint32"
- }
- }
- },
- "resharers": {
- "type": "object",
- "description": "People who reshared this activity.",
- "properties": {
- "selfLink": {
- "type": "string",
- "description": "The URL for the collection of resharers."
- },
- "totalItems": {
- "type": "integer",
- "description": "Total number of people who reshared this activity.",
- "format": "uint32"
- }
- }
- },
- "url": {
- "type": "string",
- "description": "The URL that points to the linked resource."
- }
- }
- },
- "placeId": {
- "type": "string",
- "description": "ID of the place where this activity occurred."
- },
- "placeName": {
- "type": "string",
- "description": "Name of the place where this activity occurred."
- },
- "placeholder": {
- "type": "boolean",
- "description": "True if this activity is a placeholder."
- },
- "provider": {
- "type": "object",
- "description": "The service provider that initially published this activity.",
- "properties": {
- "title": {
- "type": "string",
- "description": "Name of the service provider."
- }
- }
- },
- "published": {
- "type": "string",
- "description": "The time at which this activity was initially published. Formatted as an RFC 3339 timestamp.",
- "format": "date-time"
- },
- "radius": {
- "type": "string",
- "description": "Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode."
- },
- "title": {
- "type": "string",
- "description": "Title of this activity."
- },
- "updated": {
- "type": "string",
- "description": "The time at which this activity was last updated. Formatted as an RFC 3339 timestamp.",
- "format": "date-time"
- },
- "url": {
- "type": "string",
- "description": "The link to this activity."
- },
- "verb": {
- "type": "string",
- "description": "This activity's verb, indicating what action was performed. Possible values are: \n- \"post\" - Publish content to the stream. \n- \"checkin\" - Check in to a location. \n- \"share\" - Reshare an activity."
- }
- }
- },
- "ActivityFeed": {
- "id": "ActivityFeed",
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "The ID of this collection of activities."
- },
- "items": {
- "type": "array",
- "description": "The activities in this page of results.",
- "items": {
- "$ref": "Activity"
- }
- },
- "kind": {
- "type": "string",
- "description": "Identifies this resource as a collection of activities. Value: \"plus#activityFeed\".",
- "default": "plus#activityFeed"
- },
- "nextLink": {
- "type": "string",
- "description": "Link to the next page of activities."
- },
- "nextPageToken": {
- "type": "string",
- "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results."
- },
- "selfLink": {
- "type": "string",
- "description": "Link to this activity resource."
- },
- "title": {
- "type": "string",
- "description": "The title of this collection of activities."
- },
- "updated": {
- "type": "string",
- "description": "The time at which this collection of activities was last updated. Formatted as an RFC 3339 timestamp.",
- "format": "date-time"
- }
- }
- },
- "Comment": {
- "id": "Comment",
- "type": "object",
- "properties": {
- "actor": {
- "type": "object",
- "description": "The person who posted this comment.",
- "properties": {
- "displayName": {
- "type": "string",
- "description": "The name of this actor, suitable for display."
- },
- "id": {
- "type": "string",
- "description": "The ID of the actor."
- },
- "image": {
- "type": "object",
- "description": "The image representation of this actor.",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side."
- }
- }
- },
- "url": {
- "type": "string",
- "description": "A link to the person resource for this actor."
- }
- }
- },
- "id": {
- "type": "string",
- "description": "The ID of this comment."
- },
- "inReplyTo": {
- "type": "array",
- "description": "The activity this comment replied to.",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "The id of the activity."
- },
- "url": {
- "type": "string",
- "description": "The url of the activity."
- }
- }
- }
- },
- "kind": {
- "type": "string",
- "description": "Identifies this resource as a comment. Value: \"plus#comment\".",
- "default": "plus#comment"
- },
- "object": {
- "type": "object",
- "description": "The object of this comment.",
- "properties": {
- "content": {
- "type": "string",
- "description": "The content of this comment."
- },
- "objectType": {
- "type": "string",
- "description": "The object type of this comment. Possible values are: \n- \"comment\" - A comment in reply to an activity.",
- "default": "comment"
- }
- }
- },
- "published": {
- "type": "string",
- "description": "The time at which this comment was initially published. Formatted as an RFC 3339 timestamp.",
- "format": "date-time"
- },
- "selfLink": {
- "type": "string",
- "description": "Link to this comment resource."
- },
- "updated": {
- "type": "string",
- "description": "The time at which this comment was last updated. Formatted as an RFC 3339 timestamp.",
- "format": "date-time"
- },
- "verb": {
- "type": "string",
- "description": "This comment's verb, indicating what action was performed. Possible values are: \n- \"post\" - Publish content to the stream.",
- "default": "post"
- }
- }
- },
- "CommentFeed": {
- "id": "CommentFeed",
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "The ID of this collection of comments."
- },
- "items": {
- "type": "array",
- "description": "The comments in this page of results.",
- "items": {
- "$ref": "Comment"
- }
- },
- "kind": {
- "type": "string",
- "description": "Identifies this resource as a collection of comments. Value: \"plus#commentFeed\".",
- "default": "plus#commentFeed"
- },
- "nextLink": {
- "type": "string",
- "description": "Link to the next page of activities."
- },
- "nextPageToken": {
- "type": "string",
- "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results."
- },
- "title": {
- "type": "string",
- "description": "The title of this collection of comments."
- },
- "updated": {
- "type": "string",
- "description": "The time at which this collection of comments was last updated. Formatted as an RFC 3339 timestamp.",
- "format": "date-time"
- }
- }
- },
- "PeopleFeed": {
- "id": "PeopleFeed",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "description": "The people in this page of results. Each item will include the id, displayName, image, and url for the person. To retrieve additional profile data, see the people.get method.",
- "items": {
- "$ref": "Person"
- }
- },
- "kind": {
- "type": "string",
- "description": "Identifies this resource as a collection of people. Value: \"plus#peopleFeed\".",
- "default": "plus#peopleFeed"
- },
- "nextPageToken": {
- "type": "string",
- "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results."
- },
- "selfLink": {
- "type": "string",
- "description": "Link to this resource."
- },
- "title": {
- "type": "string",
- "description": "The title of this collection of people."
- }
- }
- },
- "Person": {
- "id": "Person",
- "type": "object",
- "properties": {
- "aboutMe": {
- "type": "string",
- "description": "A short biography for this person."
- },
- "birthday": {
- "type": "string",
- "description": "The person's date of birth, represented as YYYY-MM-DD."
- },
- "currentLocation": {
- "type": "string",
- "description": "The current location for this person."
- },
- "displayName": {
- "type": "string",
- "description": "The name of this person, suitable for display."
- },
- "emails": {
- "type": "array",
- "description": "A list of email addresses for this person.",
- "items": {
- "type": "object",
- "properties": {
- "primary": {
- "type": "boolean",
- "description": "If \"true\", indicates this email address is the person's primary one."
- },
- "type": {
- "type": "string",
- "description": "The type of address. Possible values are: \n- \"home\" - Home email address. \n- \"work\" - Work email address. \n- \"other\" - Other."
- },
- "value": {
- "type": "string",
- "description": "The email address."
- }
- }
- }
- },
- "gender": {
- "type": "string",
- "description": "The person's gender. Possible values are: \n- \"male\" - Male gender. \n- \"female\" - Female gender. \n- \"other\" - Other."
- },
- "hasApp": {
- "type": "boolean",
- "description": "If \"true\", indicates that the person has installed the app that is making the request and has chosen to expose this install state to the caller. A value of \"false\" indicates that the install state cannot be determined (it is either not installed or the person has chosen to keep this information private)."
- },
- "id": {
- "type": "string",
- "description": "The ID of this person."
- },
- "image": {
- "type": "object",
- "description": "The representation of the person's profile photo.",
- "properties": {
- "url": {
- "type": "string",
- "description": "The URL of the person's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side."
- }
- }
- },
- "kind": {
- "type": "string",
- "description": "Identifies this resource as a person. Value: \"plus#person\".",
- "default": "plus#person"
- },
- "languagesSpoken": {
- "type": "array",
- "description": "The languages spoken by this person.",
- "items": {
- "type": "string"
- }
- },
- "name": {
- "type": "object",
- "description": "An object representation of the individual components of a person's name.",
- "properties": {
- "familyName": {
- "type": "string",
- "description": "The family name (last name) of this person."
- },
- "formatted": {
- "type": "string",
- "description": "The full name of this person, including middle names, suffixes, etc."
- },
- "givenName": {
- "type": "string",
- "description": "The given name (first name) of this person."
- },
- "honorificPrefix": {
- "type": "string",
- "description": "The honorific prefixes (such as \"Dr.\" or \"Mrs.\") for this person."
- },
- "honorificSuffix": {
- "type": "string",
- "description": "The honorific suffixes (such as \"Jr.\") for this person."
- },
- "middleName": {
- "type": "string",
- "description": "The middle name of this person."
- }
- }
- },
- "nickname": {
- "type": "string",
- "description": "The nickname of this person."
- },
- "organizations": {
- "type": "array",
- "description": "A list of current or past organizations with which this person is associated.",
- "items": {
- "type": "object",
- "properties": {
- "department": {
- "type": "string",
- "description": "The department within the organization."
- },
- "description": {
- "type": "string",
- "description": "A short description of the person's role in this organization."
- },
- "endDate": {
- "type": "string",
- "description": "The date the person left this organization."
- },
- "location": {
- "type": "string",
- "description": "The location of this organization."
- },
- "name": {
- "type": "string",
- "description": "The name of the organization."
- },
- "primary": {
- "type": "boolean",
- "description": "If \"true\", indicates this organization is the person's primary one (typically interpreted as current one)."
- },
- "startDate": {
- "type": "string",
- "description": "The date the person joined this organization."
- },
- "title": {
- "type": "string",
- "description": "The person's job title or role within the organization."
- },
- "type": {
- "type": "string",
- "description": "The type of organization. Possible values are: \n- \"work\" - Work. \n- \"school\" - School."
- }
- }
- }
- },
- "placesLived": {
- "type": "array",
- "description": "A list of places where this person has lived.",
- "items": {
- "type": "object",
- "properties": {
- "primary": {
- "type": "boolean",
- "description": "If \"true\", this place of residence is this person's primary residence."
- },
- "value": {
- "type": "string",
- "description": "A place where this person has lived. For example: \"Seattle, WA\", \"Near Toronto\"."
- }
- }
- }
- },
- "relationshipStatus": {
- "type": "string",
- "description": "The person's relationship status. Possible values are: \n- \"single\" - Person is single. \n- \"in_a_relationship\" - Person is in a relationship. \n- \"engaged\" - Person is engaged. \n- \"married\" - Person is married. \n- \"its_complicated\" - The relationship is complicated. \n- \"open_relationship\" - Person is in an open relationship. \n- \"widowed\" - Person is widowed. \n- \"in_domestic_partnership\" - Person is in a domestic partnership. \n- \"in_civil_union\" - Person is in a civil union."
- },
- "tagline": {
- "type": "string",
- "description": "The brief description (tagline) of this person."
- },
- "url": {
- "type": "string",
- "description": "The URL of this person's profile."
- },
- "urls": {
- "type": "array",
- "description": "A list of URLs for this person.",
- "items": {
- "type": "object",
- "properties": {
- "primary": {
- "type": "boolean",
- "description": "If \"true\", this URL is the person's primary URL."
- },
- "type": {
- "type": "string",
- "description": "The type of URL. Possible values are: \n- \"home\" - URL for home. \n- \"work\" - URL for work. \n- \"blog\" - URL for blog. \n- \"profile\" - URL for profile. \n- \"other\" - Other."
- },
- "value": {
- "type": "string",
- "description": "The URL value."
- }
- }
- }
- }
- }
- },
- "PlusAclentryResource": {
- "id": "PlusAclentryResource",
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "description": "The ID of the entry. For entries of type \"person\" or \"circle\", this is the ID of the resource. For other types, this property is not set."
- },
- "type": {
- "type": "string",
- "description": "The type of entry describing to whom access is granted. Possible values are: \n- \"person\" - Access to an individual. \n- \"circle\" - Access to members of a circle. \n- \"myCircles\" - Access to members of all the person's circles. \n- \"extendedCircles\" - Access to members of everyone in a person's circles, plus all of the people in their circles. \n- \"public\" - Access to anyone on the web."
- }
- }
- }
- },
- "resources": {
- "activities": {
- "methods": {
- "get": {
- "id": "plus.activities.get",
- "path": "activities/{activityId}",
- "httpMethod": "GET",
- "description": "Get an activity.",
- "parameters": {
- "activityId": {
- "type": "string",
- "description": "The ID of the activity to get.",
- "required": true,
- "location": "path"
- },
- "alt": {
- "type": "string",
- "description": "Specifies an alternative representation type.",
- "default": "json",
- "enum": [
- "json"
- ],
- "enumDescriptions": [
- "Use JSON format"
- ],
- "location": "query"
- }
- },
- "parameterOrder": [
- "activityId"
- ],
- "response": {
- "$ref": "Activity"
- },
- "scopes": [
- "https://www.googleapis.com/auth/plus.me"
- ]
- },
- "list": {
- "id": "plus.activities.list",
- "path": "people/{userId}/activities/{collection}",
- "httpMethod": "GET",
- "description": "List all of the activities in the specified collection for a particular user.",
- "parameters": {
- "alt": {
- "type": "string",
- "description": "Specifies an alternative representation type.",
- "default": "json",
- "enum": [
- "json"
- ],
- "enumDescriptions": [
- "Use JSON format"
- ],
- "location": "query"
- },
- "collection": {
- "type": "string",
- "description": "The collection of activities to list.",
- "required": true,
- "enum": [
- "public"
- ],
- "enumDescriptions": [
- "All public activities created by the specified user."
- ],
- "location": "path"
- },
- "maxResults": {
- "type": "integer",
- "description": "The maximum number of activities to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.",
- "default": "20",
- "format": "uint32",
- "minimum": "1",
- "maximum": "100",
- "location": "query"
- },
- "pageToken": {
- "type": "string",
- "description": "The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
- "location": "query"
- },
- "userId": {
- "type": "string",
- "description": "The ID of the user to get activities for. The special value \"me\" can be used to indicate the authenticated user.",
- "required": true,
- "pattern": "me|[0-9]+",
- "location": "path"
- }
- },
- "parameterOrder": [
- "userId",
- "collection"
- ],
- "response": {
- "$ref": "ActivityFeed"
- },
- "scopes": [
- "https://www.googleapis.com/auth/plus.me"
- ]
- },
- "search": {
- "id": "plus.activities.search",
- "path": "activities",
- "httpMethod": "GET",
- "description": "Search public activities.",
- "parameters": {
- "language": {
- "type": "string",
- "description": "Specify the preferred language to search with. See Language Codes for available values.",
- "default": "",
- "location": "query"
- },
- "maxResults": {
- "type": "integer",
- "description": "The maximum number of activities to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.",
- "default": "10",
- "format": "uint32",
- "minimum": "1",
- "maximum": "20",
- "location": "query"
- },
- "orderBy": {
- "type": "string",
- "description": "Specifies how to order search results.",
- "default": "recent",
- "enum": [
- "best",
- "recent"
- ],
- "enumDescriptions": [
- "Sort activities by relevance to the user, most relevant first.",
- "Sort activities by published date, most recent first."
- ],
- "location": "query"
- },
- "pageToken": {
- "type": "string",
- "description": "The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response. This token may be of any length.",
- "location": "query"
- },
- "query": {
- "type": "string",
- "description": "Full-text search query string.",
- "required": true,
- "location": "query"
- }
- },
- "parameterOrder": [
- "query"
- ],
- "response": {
- "$ref": "ActivityFeed"
- },
- "scopes": [
- "https://www.googleapis.com/auth/plus.me"
- ]
- }
- }
- },
- "comments": {
- "methods": {
- "get": {
- "id": "plus.comments.get",
- "path": "comments/{commentId}",
- "httpMethod": "GET",
- "description": "Get a comment.",
- "parameters": {
- "commentId": {
- "type": "string",
- "description": "The ID of the comment to get.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "commentId"
- ],
- "response": {
- "$ref": "Comment"
- },
- "scopes": [
- "https://www.googleapis.com/auth/plus.me"
- ]
- },
- "list": {
- "id": "plus.comments.list",
- "path": "activities/{activityId}/comments",
- "httpMethod": "GET",
- "description": "List all of the comments for an activity.",
- "parameters": {
- "activityId": {
- "type": "string",
- "description": "The ID of the activity to get comments for.",
- "required": true,
- "location": "path"
- },
- "alt": {
- "type": "string",
- "description": "Specifies an alternative representation type.",
- "default": "json",
- "enum": [
- "json"
- ],
- "enumDescriptions": [
- "Use JSON format"
- ],
- "location": "query"
- },
- "maxResults": {
- "type": "integer",
- "description": "The maximum number of comments to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.",
- "default": "20",
- "format": "uint32",
- "minimum": "0",
- "maximum": "100",
- "location": "query"
- },
- "pageToken": {
- "type": "string",
- "description": "The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
- "location": "query"
- }
- },
- "parameterOrder": [
- "activityId"
- ],
- "response": {
- "$ref": "CommentFeed"
- },
- "scopes": [
- "https://www.googleapis.com/auth/plus.me"
- ]
- }
- }
- },
- "people": {
- "methods": {
- "get": {
- "id": "plus.people.get",
- "path": "people/{userId}",
- "httpMethod": "GET",
- "description": "Get a person's profile.",
- "parameters": {
- "userId": {
- "type": "string",
- "description": "The ID of the person to get the profile for. The special value \"me\" can be used to indicate the authenticated user.",
- "required": true,
- "pattern": "me|[0-9]+",
- "location": "path"
- }
- },
- "parameterOrder": [
- "userId"
- ],
- "response": {
- "$ref": "Person"
- },
- "scopes": [
- "https://www.googleapis.com/auth/plus.me"
- ]
- },
- "listByActivity": {
- "id": "plus.people.listByActivity",
- "path": "activities/{activityId}/people/{collection}",
- "httpMethod": "GET",
- "description": "List all of the people in the specified collection for a particular activity.",
- "parameters": {
- "activityId": {
- "type": "string",
- "description": "The ID of the activity to get the list of people for.",
- "required": true,
- "location": "path"
- },
- "collection": {
- "type": "string",
- "description": "The collection of people to list.",
- "required": true,
- "enum": [
- "plusoners",
- "resharers"
- ],
- "enumDescriptions": [
- "List all people who have +1'd this activity.",
- "List all people who have reshared this activity."
- ],
- "location": "path"
- },
- "maxResults": {
- "type": "integer",
- "description": "The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.",
- "default": "20",
- "format": "uint32",
- "minimum": "1",
- "maximum": "100",
- "location": "query"
- },
- "pageToken": {
- "type": "string",
- "description": "The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
- "location": "query"
- }
- },
- "parameterOrder": [
- "activityId",
- "collection"
- ],
- "response": {
- "$ref": "PeopleFeed"
- },
- "scopes": [
- "https://www.googleapis.com/auth/plus.me"
- ]
- },
- "search": {
- "id": "plus.people.search",
- "path": "people",
- "httpMethod": "GET",
- "description": "Search all public profiles.",
- "parameters": {
- "language": {
- "type": "string",
- "description": "Specify the preferred language to search with. See Language Codes for available values.",
- "default": "",
- "location": "query"
- },
- "maxResults": {
- "type": "integer",
- "description": "The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.",
- "default": "10",
- "format": "uint32",
- "minimum": "1",
- "maximum": "20",
- "location": "query"
- },
- "pageToken": {
- "type": "string",
- "description": "The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response. This token may be of any length.",
- "location": "query"
- },
- "query": {
- "type": "string",
- "description": "Full-text search query string.",
- "required": true,
- "location": "query"
- }
- },
- "parameterOrder": [
- "query"
- ],
- "response": {
- "$ref": "PeopleFeed"
- },
- "scopes": [
- "https://www.googleapis.com/auth/plus.me"
- ]
- }
- }
- }
- }
-}
diff --git a/tests/data/small.jpg b/tests/data/small.jpg
deleted file mode 100644
index 6aa8bbc..0000000
--- a/tests/data/small.jpg
+++ /dev/null
Binary files differ
diff --git a/tests/data/small.png b/tests/data/small.png
deleted file mode 100644
index 5446bc2..0000000
--- a/tests/data/small.png
+++ /dev/null
Binary files differ
diff --git a/tests/data/smiley.png b/tests/data/smiley.png
deleted file mode 100644
index ba772db..0000000
--- a/tests/data/smiley.png
+++ /dev/null
Binary files differ
diff --git a/tests/data/tasks.json b/tests/data/tasks.json
deleted file mode 100644
index ee7be10..0000000
--- a/tests/data/tasks.json
+++ /dev/null
@@ -1,663 +0,0 @@
-{
- "kind": "discovery#restDescription",
- "id": "tasks:v1",
- "name": "tasks",
- "version": "v1",
- "title": "Tasks API",
- "description": "Lets you manage your tasks and task lists.",
- "icons": {
- "x16": "http://www.google.com/images/icons/product/tasks-16.png",
- "x32": "http://www.google.com/images/icons/product/tasks-32.png"
- },
- "documentationLink": "http://code.google.com/apis/tasks/v1/using.html",
- "labels": [
- "labs"
- ],
- "protocol": "rest",
- "basePath": "/tasks/v1/",
- "rootUrl": "https://www.googleapis.com/",
- "servicePath": "tasks/v1/",
- "parameters": {
- "alt": {
- "type": "string",
- "description": "Data format for the response.",
- "default": "json",
- "enum": [
- "json"
- ],
- "enumDescriptions": [
- "Responses with Content-Type of application/json"
- ],
- "location": "query"
- },
- "fields": {
- "type": "string",
- "description": "Selector specifying which fields to include in a partial response.",
- "location": "query"
- },
- "key": {
- "type": "string",
- "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.",
- "location": "query"
- },
- "oauth_token": {
- "type": "string",
- "description": "OAuth 2.0 token for the current user.",
- "location": "query"
- },
- "prettyPrint": {
- "type": "boolean",
- "description": "Returns response with indentations and line breaks.",
- "default": "true",
- "location": "query"
- },
- "userIp": {
- "type": "string",
- "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
- "location": "query"
- }
- },
- "auth": {
- "oauth2": {
- "scopes": {
- "https://www.googleapis.com/auth/tasks": {
- "description": "Manage your tasks"
- },
- "https://www.googleapis.com/auth/tasks.readonly": {
- "description": "View your tasks"
- }
- }
- }
- },
- "schemas": {
- "Task": {
- "id": "Task",
- "type": "object",
- "properties": {
- "completed": {
- "type": "string",
- "description": "Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.",
- "format": "date-time"
- },
- "deleted": {
- "type": "boolean",
- "description": "Flag indicating whether the task has been deleted. The default if False."
- },
- "due": {
- "type": "string",
- "description": "Due date of the task (as a RFC 3339 timestamp). Optional.",
- "format": "date-time"
- },
- "etag": {
- "type": "string",
- "description": "ETag of the resource."
- },
- "hidden": {
- "type": "boolean",
- "description": "Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only."
- },
- "id": {
- "type": "string",
- "description": "Task identifier."
- },
- "kind": {
- "type": "string",
- "description": "Type of the resource. This is always \"tasks#task\".",
- "default": "tasks#task"
- },
- "notes": {
- "type": "string",
- "description": "Notes describing the task. Optional."
- },
- "parent": {
- "type": "string",
- "description": "Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the \"move\" method to move the task under a different parent or to the top level."
- },
- "position": {
- "type": "string",
- "description": "String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the \"move\" method to move the task to another position."
- },
- "selfLink": {
- "type": "string",
- "description": "URL pointing to this task. Used to retrieve, update, or delete this task."
- },
- "status": {
- "type": "string",
- "description": "Status of the task. This is either \"needsAction\" or \"completed\"."
- },
- "title": {
- "type": "string",
- "description": "Title of the task."
- },
- "updated": {
- "type": "string",
- "description": "Last modification time of the task (as a RFC 3339 timestamp).",
- "format": "date-time"
- }
- }
- },
- "TaskList": {
- "id": "TaskList",
- "type": "object",
- "properties": {
- "etag": {
- "type": "string",
- "description": "ETag of the resource."
- },
- "id": {
- "type": "string",
- "description": "Task list identifier."
- },
- "kind": {
- "type": "string",
- "description": "Type of the resource. This is always \"tasks#taskList\".",
- "default": "tasks#taskList"
- },
- "selfLink": {
- "type": "string",
- "description": "URL pointing to this task list. Used to retrieve, update, or delete this task list."
- },
- "title": {
- "type": "string",
- "description": "Title of the task list."
- }
- }
- },
- "TaskLists": {
- "id": "TaskLists",
- "type": "object",
- "properties": {
- "etag": {
- "type": "string",
- "description": "ETag of the resource."
- },
- "items": {
- "type": "array",
- "description": "Collection of task lists.",
- "items": {
- "$ref": "TaskList"
- }
- },
- "kind": {
- "type": "string",
- "description": "Type of the resource. This is always \"tasks#taskLists\".",
- "default": "tasks#taskLists"
- },
- "nextPageToken": {
- "type": "string",
- "description": "Token that can be used to request the next page of this result."
- }
- }
- },
- "Tasks": {
- "id": "Tasks",
- "type": "object",
- "properties": {
- "etag": {
- "type": "string",
- "description": "ETag of the resource."
- },
- "items": {
- "type": "array",
- "description": "Collection of tasks.",
- "items": {
- "$ref": "Task"
- }
- },
- "kind": {
- "type": "string",
- "description": "Type of the resource. This is always \"tasks#tasks\".",
- "default": "tasks#tasks"
- },
- "nextPageToken": {
- "type": "string",
- "description": "Token used to access the next page of this result."
- }
- }
- }
- },
- "resources": {
- "tasklists": {
- "methods": {
- "delete": {
- "id": "tasks.tasklists.delete",
- "path": "users/@me/lists/{tasklist}",
- "httpMethod": "DELETE",
- "description": "Deletes the authenticated user's specified task list.",
- "parameters": {
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- },
- "get": {
- "id": "tasks.tasklists.get",
- "path": "users/@me/lists/{tasklist}",
- "httpMethod": "GET",
- "description": "Returns the authenticated user's specified task list.",
- "parameters": {
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist"
- ],
- "response": {
- "$ref": "TaskList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks",
- "https://www.googleapis.com/auth/tasks.readonly"
- ]
- },
- "insert": {
- "id": "tasks.tasklists.insert",
- "path": "users/@me/lists",
- "httpMethod": "POST",
- "description": "Creates a new task list and adds it to the authenticated user's task lists.",
- "request": {
- "$ref": "TaskList"
- },
- "response": {
- "$ref": "TaskList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- },
- "list": {
- "id": "tasks.tasklists.list",
- "path": "users/@me/lists",
- "httpMethod": "GET",
- "description": "Returns all the authenticated user's task lists.",
- "parameters": {
- "maxResults": {
- "type": "integer",
- "description": "Maximum number of task lists returned on one page. Optional. The default is 100.",
- "minimum": "-9223372036854775808",
- "maximum": "9223372036854775807",
- "location": "query"
- },
- "pageToken": {
- "type": "string",
- "description": "Token specifying the result page to return. Optional.",
- "location": "query"
- }
- },
- "response": {
- "$ref": "TaskLists"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks",
- "https://www.googleapis.com/auth/tasks.readonly"
- ]
- },
- "patch": {
- "id": "tasks.tasklists.patch",
- "path": "users/@me/lists/{tasklist}",
- "httpMethod": "PATCH",
- "description": "Updates the authenticated user's specified task list. This method supports patch semantics.",
- "parameters": {
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist"
- ],
- "request": {
- "$ref": "TaskList"
- },
- "response": {
- "$ref": "TaskList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- },
- "update": {
- "id": "tasks.tasklists.update",
- "path": "users/@me/lists/{tasklist}",
- "httpMethod": "PUT",
- "description": "Updates the authenticated user's specified task list.",
- "parameters": {
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist"
- ],
- "request": {
- "$ref": "TaskList"
- },
- "response": {
- "$ref": "TaskList"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- }
- }
- },
- "tasks": {
- "methods": {
- "clear": {
- "id": "tasks.tasks.clear",
- "path": "lists/{tasklist}/clear",
- "httpMethod": "POST",
- "description": "Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.",
- "parameters": {
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- },
- "delete": {
- "id": "tasks.tasks.delete",
- "path": "lists/{tasklist}/tasks/{task}",
- "httpMethod": "DELETE",
- "description": "Deletes the specified task from the task list.",
- "parameters": {
- "task": {
- "type": "string",
- "description": "Task identifier.",
- "required": true,
- "location": "path"
- },
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist",
- "task"
- ],
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- },
- "get": {
- "id": "tasks.tasks.get",
- "path": "lists/{tasklist}/tasks/{task}",
- "httpMethod": "GET",
- "description": "Returns the specified task.",
- "parameters": {
- "task": {
- "type": "string",
- "description": "Task identifier.",
- "required": true,
- "location": "path"
- },
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist",
- "task"
- ],
- "response": {
- "$ref": "Task"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks",
- "https://www.googleapis.com/auth/tasks.readonly"
- ]
- },
- "insert": {
- "id": "tasks.tasks.insert",
- "path": "lists/{tasklist}/tasks",
- "httpMethod": "POST",
- "description": "Creates a new task on the specified task list.",
- "parameters": {
- "parent": {
- "type": "string",
- "description": "Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.",
- "location": "query"
- },
- "previous": {
- "type": "string",
- "description": "Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.",
- "location": "query"
- },
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist"
- ],
- "request": {
- "$ref": "Task"
- },
- "response": {
- "$ref": "Task"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- },
- "list": {
- "id": "tasks.tasks.list",
- "path": "lists/{tasklist}/tasks",
- "httpMethod": "GET",
- "description": "Returns all tasks in the specified task list.",
- "parameters": {
- "completedMax": {
- "type": "string",
- "description": "Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.",
- "location": "query"
- },
- "completedMin": {
- "type": "string",
- "description": "Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.",
- "location": "query"
- },
- "dueMax": {
- "type": "string",
- "description": "Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.",
- "location": "query"
- },
- "dueMin": {
- "type": "string",
- "description": "Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.",
- "location": "query"
- },
- "maxResults": {
- "type": "integer",
- "description": "Maximum number of task lists returned on one page. Optional. The default is 100.",
- "minimum": "-9223372036854775808",
- "maximum": "9223372036854775807",
- "location": "query"
- },
- "pageToken": {
- "type": "string",
- "description": "Token specifying the result page to return. Optional.",
- "location": "query"
- },
- "showCompleted": {
- "type": "boolean",
- "description": "Flag indicating whether completed tasks are returned in the result. Optional. The default is True.",
- "location": "query"
- },
- "showDeleted": {
- "type": "boolean",
- "description": "Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.",
- "location": "query"
- },
- "showHidden": {
- "type": "boolean",
- "description": "Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.",
- "location": "query"
- },
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- },
- "updatedMin": {
- "type": "string",
- "description": "Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.",
- "location": "query"
- }
- },
- "parameterOrder": [
- "tasklist"
- ],
- "response": {
- "$ref": "Tasks"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks",
- "https://www.googleapis.com/auth/tasks.readonly"
- ]
- },
- "move": {
- "id": "tasks.tasks.move",
- "path": "lists/{tasklist}/tasks/{task}/move",
- "httpMethod": "POST",
- "description": "Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.",
- "parameters": {
- "parent": {
- "type": "string",
- "description": "New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.",
- "location": "query"
- },
- "previous": {
- "type": "string",
- "description": "New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.",
- "location": "query"
- },
- "task": {
- "type": "string",
- "description": "Task identifier.",
- "required": true,
- "location": "path"
- },
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist",
- "task"
- ],
- "response": {
- "$ref": "Task"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- },
- "patch": {
- "id": "tasks.tasks.patch",
- "path": "lists/{tasklist}/tasks/{task}",
- "httpMethod": "PATCH",
- "description": "Updates the specified task. This method supports patch semantics.",
- "parameters": {
- "task": {
- "type": "string",
- "description": "Task identifier.",
- "required": true,
- "location": "path"
- },
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist",
- "task"
- ],
- "request": {
- "$ref": "Task"
- },
- "response": {
- "$ref": "Task"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- },
- "update": {
- "id": "tasks.tasks.update",
- "path": "lists/{tasklist}/tasks/{task}",
- "httpMethod": "PUT",
- "description": "Updates the specified task.",
- "parameters": {
- "task": {
- "type": "string",
- "description": "Task identifier.",
- "required": true,
- "location": "path"
- },
- "tasklist": {
- "type": "string",
- "description": "Task list identifier.",
- "required": true,
- "location": "path"
- }
- },
- "parameterOrder": [
- "tasklist",
- "task"
- ],
- "request": {
- "$ref": "Task"
- },
- "response": {
- "$ref": "Task"
- },
- "scopes": [
- "https://www.googleapis.com/auth/tasks"
- ]
- }
- }
- }
- }
-}
diff --git a/tests/data/zoo.json b/tests/data/zoo.json
deleted file mode 100644
index 38cb686..0000000
--- a/tests/data/zoo.json
+++ /dev/null
@@ -1,584 +0,0 @@
-{
- "kind": "discovery#describeItem",
- "name": "zoo",
- "version": "v1",
- "description": "Zoo API used for testing",
- "basePath": "/zoo/",
- "rootUrl": "https://www.googleapis.com/",
- "servicePath": "zoo/v1/",
- "rpcPath": "/rpc",
- "parameters": {
- "alt": {
- "type": "string",
- "description": "Data format for the response.",
- "default": "json",
- "enum": [
- "json"
- ],
- "enumDescriptions": [
- "Responses with Content-Type of application/json"
- ],
- "location": "query"
- },
- "fields": {
- "type": "string",
- "description": "Selector specifying which fields to include in a partial response.",
- "location": "query"
- },
- "key": {
- "type": "string",
- "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.",
- "location": "query"
- },
- "oauth_token": {
- "type": "string",
- "description": "OAuth 2.0 token for the current user.",
- "location": "query"
- },
- "prettyPrint": {
- "type": "boolean",
- "description": "Returns response with indentations and line breaks.",
- "default": "true",
- "location": "query"
- },
- "quotaUser": {
- "type": "string",
- "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.",
- "location": "query"
- },
- "userIp": {
- "type": "string",
- "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
- "location": "query"
- }
- },
- "features": [
- "dataWrapper"
- ],
- "schemas": {
- "Animal": {
- "id": "Animal",
- "type": "object",
- "properties": {
- "etag": {
- "type": "string"
- },
- "kind": {
- "type": "string",
- "default": "zoo#animal"
- },
- "name": {
- "type": "string"
- },
- "photo": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "hash": {
- "type": "string"
- },
- "hashAlgorithm": {
- "type": "string"
- },
- "size": {
- "type": "integer"
- },
- "type": {
- "type": "string"
- }
- }
- }
- }
- },
- "Animal2": {
- "id": "Animal2",
- "type": "object",
- "properties": {
- "kind": {
- "type": "string",
- "default": "zoo#animal"
- },
- "name": {
- "type": "string"
- }
- }
- },
- "AnimalFeed": {
- "id": "AnimalFeed",
- "type": "object",
- "properties": {
- "etag": {
- "type": "string"
- },
- "items": {
- "type": "array",
- "items": {
- "$ref": "Animal"
- }
- },
- "kind": {
- "type": "string",
- "default": "zoo#animalFeed"
- }
- }
- },
- "AnimalMap": {
- "id": "AnimalMap",
- "type": "object",
- "properties": {
- "etag": {
- "type": "string"
- },
- "animals": {
- "type": "object",
- "description": "Map of animal id to animal data",
- "additionalProperties": {
- "$ref": "Animal"
- }
- },
- "kind": {
- "type": "string",
- "default": "zoo#animalMap"
- }
- }
- },
- "LoadFeed": {
- "id": "LoadFeed",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "doubleVal": {
- "type": "number"
- },
- "nullVal": {
- "type": "null"
- },
- "booleanVal": {
- "type": "boolean",
- "description": "True or False."
- },
- "anyVal": {
- "type": "any",
- "description": "Anything will do."
- },
- "enumVal": {
- "type": "string"
- },
- "kind": {
- "type": "string",
- "default": "zoo#loadValue"
- },
- "longVal": {
- "type": "integer"
- },
- "stringVal": {
- "type": "string"
- }
- }
- }
- },
- "kind": {
- "type": "string",
- "default": "zoo#loadFeed"
- }
- }
- }
- },
- "methods": {
- "query": {
- "path": "query",
- "id": "bigquery.query",
- "httpMethod": "GET",
- "parameters": {
- "q": {
- "type": "string",
- "location": "query",
- "required": false,
- "repeated": false
- },
- "i": {
- "type": "integer",
- "location": "query",
- "required": false,
- "repeated": false,
- "minimum": "0",
- "maximum": "4294967295",
- "default": "20"
- },
- "n": {
- "type": "number",
- "location": "query",
- "required": false,
- "repeated": false
- },
- "b": {
- "type": "boolean",
- "location": "query",
- "required": false,
- "repeated": false
- },
- "a": {
- "type": "any",
- "location": "query",
- "required": false,
- "repeated": false
- },
- "o": {
- "type": "object",
- "location": "query",
- "required": false,
- "repeated": false
- },
- "e": {
- "type": "string",
- "location": "query",
- "required": false,
- "repeated": false,
- "enum": [
- "foo",
- "bar"
- ]
- },
- "er": {
- "type": "string",
- "location": "query",
- "required": false,
- "repeated": true,
- "enum": [
- "one",
- "two",
- "three"
- ]
- },
- "rr": {
- "type": "string",
- "location": "query",
- "required": false,
- "repeated": true,
- "pattern": "[a-z]+"
- }
- }
- }
- },
- "resources": {
- "my": {
- "resources": {
- "favorites": {
- "methods": {
- "list": {
- "path": "favorites/@me/mine",
- "id": "zoo.animals.mine",
- "httpMethod": "GET",
- "parameters": {
- "max-results": {
- "location": "query",
- "required": false
- }
- }
- }
- }
- }
- }
- },
- "global": {
- "resources": {
- "print": {
- "methods": {
- "assert": {
- "path": "global/print/assert",
- "id": "zoo.animals.mine",
- "httpMethod": "GET",
- "parameters": {
- "max-results": {
- "location": "query",
- "required": false
- }
- }
- }
- }
- }
- }
- },
- "animals": {
- "methods": {
- "crossbreed": {
- "path": "animals/crossbreed",
- "id": "zoo.animals.crossbreed",
- "httpMethod": "POST",
- "description": "Cross-breed animals",
- "response": {
- "$ref": "Animal2"
- },
- "mediaUpload": {
- "accept": [
- "image/png"
- ],
- "protocols": {
- "simple": {
- "multipart": true,
- "path": "upload/activities/{userId}/@self"
- },
- "resumable": {
- "multipart": true,
- "path": "upload/activities/{userId}/@self"
- }
- }
- }
- },
- "delete": {
- "path": "animals/{name}",
- "id": "zoo.animals.delete",
- "httpMethod": "DELETE",
- "description": "Delete animals",
- "parameters": {
- "name": {
- "location": "path",
- "required": true,
- "description": "Name of the animal to delete",
- "type": "string"
- }
- },
- "parameterOrder": [
- "name"
- ]
- },
- "get": {
- "path": "animals/{name}",
- "id": "zoo.animals.get",
- "httpMethod": "GET",
- "description": "Get animals",
- "supportsMediaDownload": true,
- "parameters": {
- "name": {
- "location": "path",
- "required": true,
- "description": "Name of the animal to load",
- "type": "string"
- },
- "projection": {
- "location": "query",
- "type": "string",
- "enum": [
- "full"
- ],
- "enumDescriptions": [
- "Include everything"
- ]
- }
- },
- "parameterOrder": [
- "name"
- ],
- "response": {
- "$ref": "Animal"
- }
- },
- "getmedia": {
- "path": "animals/{name}",
- "id": "zoo.animals.get",
- "httpMethod": "GET",
- "description": "Get animals",
- "parameters": {
- "name": {
- "location": "path",
- "required": true,
- "description": "Name of the animal to load",
- "type": "string"
- },
- "projection": {
- "location": "query",
- "type": "string",
- "enum": [
- "full"
- ],
- "enumDescriptions": [
- "Include everything"
- ]
- }
- },
- "parameterOrder": [
- "name"
- ]
- },
- "insert": {
- "path": "animals",
- "id": "zoo.animals.insert",
- "httpMethod": "POST",
- "description": "Insert animals",
- "request": {
- "$ref": "Animal"
- },
- "response": {
- "$ref": "Animal"
- },
- "mediaUpload": {
- "accept": [
- "image/png"
- ],
- "maxSize": "1KB",
- "protocols": {
- "simple": {
- "multipart": true,
- "path": "upload/activities/{userId}/@self"
- },
- "resumable": {
- "multipart": true,
- "path": "upload/activities/{userId}/@self"
- }
- }
- }
- },
- "list": {
- "path": "animals",
- "id": "zoo.animals.list",
- "httpMethod": "GET",
- "description": "List animals",
- "parameters": {
- "max-results": {
- "location": "query",
- "description": "Maximum number of results to return",
- "type": "integer",
- "minimum": "0"
- },
- "name": {
- "location": "query",
- "description": "Restrict result to animals with this name",
- "type": "string"
- },
- "projection": {
- "location": "query",
- "type": "string",
- "enum": [
- "full"
- ],
- "enumDescriptions": [
- "Include absolutely everything"
- ]
- },
- "start-token": {
- "location": "query",
- "description": "Pagination token",
- "type": "string"
- }
- },
- "response": {
- "$ref": "AnimalFeed"
- }
- },
- "patch": {
- "path": "animals/{name}",
- "id": "zoo.animals.patch",
- "httpMethod": "PATCH",
- "description": "Update animals",
- "parameters": {
- "name": {
- "location": "path",
- "required": true,
- "description": "Name of the animal to update",
- "type": "string"
- }
- },
- "parameterOrder": [
- "name"
- ],
- "request": {
- "$ref": "Animal"
- },
- "response": {
- "$ref": "Animal"
- }
- },
- "update": {
- "path": "animals/{name}",
- "id": "zoo.animals.update",
- "httpMethod": "PUT",
- "description": "Update animals",
- "parameters": {
- "name": {
- "location": "path",
- "description": "Name of the animal to update",
- "type": "string"
- }
- },
- "parameterOrder": [
- "name"
- ],
- "request": {
- "$ref": "Animal"
- },
- "response": {
- "$ref": "Animal"
- }
- }
- }
- },
- "load": {
- "methods": {
- "list": {
- "path": "load",
- "id": "zoo.load.list",
- "httpMethod": "GET",
- "response": {
- "$ref": "LoadFeed"
- }
- }
- }
- },
- "loadNoTemplate": {
- "methods": {
- "list": {
- "path": "loadNoTemplate",
- "id": "zoo.loadNoTemplate.list",
- "httpMethod": "GET"
- }
- }
- },
- "scopedAnimals": {
- "methods": {
- "list": {
- "path": "scopedanimals",
- "id": "zoo.scopedAnimals.list",
- "httpMethod": "GET",
- "description": "List animals (scoped)",
- "parameters": {
- "max-results": {
- "location": "query",
- "description": "Maximum number of results to return",
- "type": "integer",
- "minimum": "0"
- },
- "name": {
- "location": "query",
- "description": "Restrict result to animals with this name",
- "type": "string"
- },
- "projection": {
- "location": "query",
- "type": "string",
- "enum": [
- "full"
- ],
- "enumDescriptions": [
- "Include absolutely everything"
- ]
- },
- "start-token": {
- "location": "query",
- "description": "Pagination token",
- "type": "string"
- }
- },
- "response": {
- "$ref": "AnimalFeed"
- }
- }
- }
- }
- }
-}