OLD | NEW |
(Empty) | |
| 1 { |
| 2 "auth": { |
| 3 "oauth2": { |
| 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/appstate": { |
| 6 "description": "View and manage your data for this applicati
on" |
| 7 } |
| 8 } |
| 9 } |
| 10 }, |
| 11 "basePath": "/appstate/v1/", |
| 12 "baseUrl": "https://www.googleapis.com/appstate/v1/", |
| 13 "batchPath": "batch", |
| 14 "canonicalName": "App State", |
| 15 "description": "The Google App State API.", |
| 16 "discoveryVersion": "v1", |
| 17 "documentationLink": "https://developers.google.com/games/services/web/api/s
tates", |
| 18 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/-zmhkDRvj1IoucD8LokwszWaafM\"", |
| 19 "icons": { |
| 20 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 21 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 22 }, |
| 23 "id": "appstate:v1", |
| 24 "kind": "discovery#restDescription", |
| 25 "name": "appstate", |
| 26 "ownerDomain": "google.com", |
| 27 "ownerName": "Google", |
| 28 "parameters": { |
| 29 "alt": { |
| 30 "default": "json", |
| 31 "description": "Data format for the response.", |
| 32 "enum": [ |
| 33 "json" |
| 34 ], |
| 35 "enumDescriptions": [ |
| 36 "Responses with Content-Type of application/json" |
| 37 ], |
| 38 "location": "query", |
| 39 "type": "string" |
| 40 }, |
| 41 "fields": { |
| 42 "description": "Selector specifying which fields to include in a par
tial response.", |
| 43 "location": "query", |
| 44 "type": "string" |
| 45 }, |
| 46 "key": { |
| 47 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 48 "location": "query", |
| 49 "type": "string" |
| 50 }, |
| 51 "oauth_token": { |
| 52 "description": "OAuth 2.0 token for the current user.", |
| 53 "location": "query", |
| 54 "type": "string" |
| 55 }, |
| 56 "prettyPrint": { |
| 57 "default": "true", |
| 58 "description": "Returns response with indentations and line breaks."
, |
| 59 "location": "query", |
| 60 "type": "boolean" |
| 61 }, |
| 62 "quotaUser": { |
| 63 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters. Overrides userIp if both are provided.", |
| 64 "location": "query", |
| 65 "type": "string" |
| 66 }, |
| 67 "userIp": { |
| 68 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", |
| 69 "location": "query", |
| 70 "type": "string" |
| 71 } |
| 72 }, |
| 73 "protocol": "rest", |
| 74 "resources": { |
| 75 "states": { |
| 76 "methods": { |
| 77 "clear": { |
| 78 "description": "Clears (sets to empty) the data for the pass
ed key if and only if the passed version matches the currently stored version. T
his method results in a conflict error on version mismatch.", |
| 79 "httpMethod": "POST", |
| 80 "id": "appstate.states.clear", |
| 81 "parameterOrder": [ |
| 82 "stateKey" |
| 83 ], |
| 84 "parameters": { |
| 85 "currentDataVersion": { |
| 86 "description": "The version of the data to be cleare
d. Version strings are returned by the server.", |
| 87 "location": "query", |
| 88 "type": "string" |
| 89 }, |
| 90 "stateKey": { |
| 91 "description": "The key for the data to be retrieved
.", |
| 92 "format": "int32", |
| 93 "location": "path", |
| 94 "maximum": "3", |
| 95 "minimum": "0", |
| 96 "required": true, |
| 97 "type": "integer" |
| 98 } |
| 99 }, |
| 100 "path": "states/{stateKey}/clear", |
| 101 "response": { |
| 102 "$ref": "WriteResult" |
| 103 }, |
| 104 "scopes": [ |
| 105 "https://www.googleapis.com/auth/appstate" |
| 106 ] |
| 107 }, |
| 108 "delete": { |
| 109 "description": "Deletes a key and the data associated with i
t. The key is removed and no longer counts against the key quota. Note that sinc
e this method is not safe in the face of concurrent modifications, it should onl
y be used for development and testing purposes. Invoking this method in shipping
code can result in data loss and data corruption.", |
| 110 "httpMethod": "DELETE", |
| 111 "id": "appstate.states.delete", |
| 112 "parameterOrder": [ |
| 113 "stateKey" |
| 114 ], |
| 115 "parameters": { |
| 116 "stateKey": { |
| 117 "description": "The key for the data to be retrieved
.", |
| 118 "format": "int32", |
| 119 "location": "path", |
| 120 "maximum": "3", |
| 121 "minimum": "0", |
| 122 "required": true, |
| 123 "type": "integer" |
| 124 } |
| 125 }, |
| 126 "path": "states/{stateKey}", |
| 127 "scopes": [ |
| 128 "https://www.googleapis.com/auth/appstate" |
| 129 ] |
| 130 }, |
| 131 "get": { |
| 132 "description": "Retrieves the data corresponding to the pass
ed key. If the key does not exist on the server, an HTTP 404 will be returned.", |
| 133 "httpMethod": "GET", |
| 134 "id": "appstate.states.get", |
| 135 "parameterOrder": [ |
| 136 "stateKey" |
| 137 ], |
| 138 "parameters": { |
| 139 "stateKey": { |
| 140 "description": "The key for the data to be retrieved
.", |
| 141 "format": "int32", |
| 142 "location": "path", |
| 143 "maximum": "3", |
| 144 "minimum": "0", |
| 145 "required": true, |
| 146 "type": "integer" |
| 147 } |
| 148 }, |
| 149 "path": "states/{stateKey}", |
| 150 "response": { |
| 151 "$ref": "GetResponse" |
| 152 }, |
| 153 "scopes": [ |
| 154 "https://www.googleapis.com/auth/appstate" |
| 155 ] |
| 156 }, |
| 157 "list": { |
| 158 "description": "Lists all the states keys, and optionally th
e state data.", |
| 159 "httpMethod": "GET", |
| 160 "id": "appstate.states.list", |
| 161 "parameters": { |
| 162 "includeData": { |
| 163 "default": "false", |
| 164 "description": "Whether to include the full data in
addition to the version number", |
| 165 "location": "query", |
| 166 "type": "boolean" |
| 167 } |
| 168 }, |
| 169 "path": "states", |
| 170 "response": { |
| 171 "$ref": "ListResponse" |
| 172 }, |
| 173 "scopes": [ |
| 174 "https://www.googleapis.com/auth/appstate" |
| 175 ] |
| 176 }, |
| 177 "update": { |
| 178 "description": "Update the data associated with the input ke
y if and only if the passed version matches the currently stored version. This m
ethod is safe in the face of concurrent writes. Maximum per-key size is 128KB.", |
| 179 "httpMethod": "PUT", |
| 180 "id": "appstate.states.update", |
| 181 "parameterOrder": [ |
| 182 "stateKey" |
| 183 ], |
| 184 "parameters": { |
| 185 "currentStateVersion": { |
| 186 "description": "The version of the app state your ap
plication is attempting to update. If this does not match the current version, t
his method will return a conflict error. If there is no data stored on the serve
r for this key, the update will succeed irrespective of the value of this parame
ter.", |
| 187 "location": "query", |
| 188 "type": "string" |
| 189 }, |
| 190 "stateKey": { |
| 191 "description": "The key for the data to be retrieved
.", |
| 192 "format": "int32", |
| 193 "location": "path", |
| 194 "maximum": "3", |
| 195 "minimum": "0", |
| 196 "required": true, |
| 197 "type": "integer" |
| 198 } |
| 199 }, |
| 200 "path": "states/{stateKey}", |
| 201 "request": { |
| 202 "$ref": "UpdateRequest" |
| 203 }, |
| 204 "response": { |
| 205 "$ref": "WriteResult" |
| 206 }, |
| 207 "scopes": [ |
| 208 "https://www.googleapis.com/auth/appstate" |
| 209 ] |
| 210 } |
| 211 } |
| 212 } |
| 213 }, |
| 214 "revision": "20140904", |
| 215 "rootUrl": "https://www.googleapis.com/", |
| 216 "schemas": { |
| 217 "GetResponse": { |
| 218 "description": "This is a JSON template for an app state resource.", |
| 219 "id": "GetResponse", |
| 220 "properties": { |
| 221 "currentStateVersion": { |
| 222 "description": "The current app state version.", |
| 223 "type": "string" |
| 224 }, |
| 225 "data": { |
| 226 "description": "The requested data.", |
| 227 "type": "string" |
| 228 }, |
| 229 "kind": { |
| 230 "default": "appstate#getResponse", |
| 231 "description": "Uniquely identifies the type of this resourc
e. Value is always the fixed string appstate#getResponse.", |
| 232 "type": "string" |
| 233 }, |
| 234 "stateKey": { |
| 235 "description": "The key for the data.", |
| 236 "format": "int32", |
| 237 "type": "integer" |
| 238 } |
| 239 }, |
| 240 "type": "object" |
| 241 }, |
| 242 "ListResponse": { |
| 243 "description": "This is a JSON template to convert a list-response f
or app state.", |
| 244 "id": "ListResponse", |
| 245 "properties": { |
| 246 "items": { |
| 247 "description": "The app state data.", |
| 248 "items": { |
| 249 "$ref": "GetResponse" |
| 250 }, |
| 251 "type": "array" |
| 252 }, |
| 253 "kind": { |
| 254 "default": "appstate#listResponse", |
| 255 "description": "Uniquely identifies the type of this resourc
e. Value is always the fixed string appstate#listResponse.", |
| 256 "type": "string" |
| 257 }, |
| 258 "maximumKeyCount": { |
| 259 "description": "The maximum number of keys allowed for this
user.", |
| 260 "format": "int32", |
| 261 "type": "integer" |
| 262 } |
| 263 }, |
| 264 "type": "object" |
| 265 }, |
| 266 "UpdateRequest": { |
| 267 "description": "This is a JSON template for a requests which update
app state", |
| 268 "id": "UpdateRequest", |
| 269 "properties": { |
| 270 "data": { |
| 271 "description": "The new app state data that your application
is trying to update with.", |
| 272 "type": "string" |
| 273 }, |
| 274 "kind": { |
| 275 "default": "appstate#updateRequest", |
| 276 "description": "Uniquely identifies the type of this resourc
e. Value is always the fixed string appstate#updateRequest.", |
| 277 "type": "string" |
| 278 } |
| 279 }, |
| 280 "type": "object" |
| 281 }, |
| 282 "WriteResult": { |
| 283 "description": "This is a JSON template for an app state write resul
t.", |
| 284 "id": "WriteResult", |
| 285 "properties": { |
| 286 "currentStateVersion": { |
| 287 "description": "The version of the data for this key on the
server.", |
| 288 "type": "string" |
| 289 }, |
| 290 "kind": { |
| 291 "default": "appstate#writeResult", |
| 292 "description": "Uniquely identifies the type of this resourc
e. Value is always the fixed string appstate#writeResult.", |
| 293 "type": "string" |
| 294 }, |
| 295 "stateKey": { |
| 296 "description": "The written key.", |
| 297 "format": "int32", |
| 298 "type": "integer" |
| 299 } |
| 300 }, |
| 301 "type": "object" |
| 302 } |
| 303 }, |
| 304 "servicePath": "appstate/v1/", |
| 305 "title": "Google App State API", |
| 306 "version": "v1" |
| 307 } |
OLD | NEW |