Index: appengine/apigen_examples/dumb_counter_mvm/api/dumb_counter/v1/dumb_counter-api.json |
diff --git a/appengine/apigen_examples/dumb_counter_mvm/api/dumb_counter/v1/dumb_counter-api.json b/appengine/apigen_examples/dumb_counter_mvm/api/dumb_counter/v1/dumb_counter-api.json |
deleted file mode 100644 |
index 449cf2e1e591ff2c7ddc269e97777b2ca9fa0414..0000000000000000000000000000000000000000 |
--- a/appengine/apigen_examples/dumb_counter_mvm/api/dumb_counter/v1/dumb_counter-api.json |
+++ /dev/null |
@@ -1,170 +0,0 @@ |
-{ |
- "kind": "discovery#restDescription", |
- "discoveryVersion": "v1", |
- "protocol": "rest", |
- "id": "dumb_counter:v1", |
- "name": "dumb_counter", |
- "version": "v1", |
- "description": "A hideously stupid persistant counter service.", |
- "baseUrl": "http://localhost:8080/api/dumb_counter/v1/", |
- "basePath": "/api/dumb_counter/v1/", |
- "rootUrl": "http://localhost:8080/api/", |
- "servicePath": "dumb_counter/v1/", |
- "schemas": { |
- "AddReq": { |
- "id": "AddReq", |
- "type": "object", |
- "properties": { |
- "Delta": { |
- "type": "string", |
- "format": "int64" |
- }, |
- "Name": { |
- "type": "string" |
- } |
- } |
- }, |
- "AddRsp": { |
- "id": "AddRsp", |
- "type": "object", |
- "properties": { |
- "Cur": { |
- "type": "string", |
- "format": "int64" |
- }, |
- "Prev": { |
- "type": "string", |
- "format": "int64" |
- } |
- } |
- }, |
- "CASReq": { |
- "id": "CASReq", |
- "type": "object", |
- "properties": { |
- "Name": { |
- "type": "string" |
- }, |
- "NewVal": { |
- "type": "string", |
- "format": "int64" |
- }, |
- "OldVal": { |
- "type": "string", |
- "format": "int64" |
- } |
- } |
- }, |
- "Counter": { |
- "id": "Counter", |
- "type": "object", |
- "properties": { |
- "Name": { |
- "type": "string" |
- }, |
- "Val": { |
- "type": "string", |
- "format": "int64" |
- } |
- } |
- }, |
- "CurrentValueRsp": { |
- "id": "CurrentValueRsp", |
- "type": "object", |
- "properties": { |
- "Val": { |
- "type": "string", |
- "format": "int64" |
- } |
- } |
- }, |
- "ListRsp": { |
- "id": "ListRsp", |
- "type": "object", |
- "properties": { |
- "Counters": { |
- "type": "array", |
- "items": { |
- "$ref": "Counter" |
- } |
- } |
- } |
- } |
- }, |
- "methods": { |
- "add": { |
- "id": "dumb_counter.add", |
- "path": "counter/{Name}", |
- "httpMethod": "POST", |
- "description": "Add an an amount to a particular counter", |
- "parameters": { |
- "Name": { |
- "type": "string", |
- "location": "path", |
- "required": true |
- } |
- }, |
- "parameterOrder": [ |
- "Name" |
- ], |
- "request": { |
- "$ref": "AddReq", |
- "parameterName": "resource" |
- }, |
- "response": { |
- "$ref": "AddRsp", |
- "parameterName": "resource" |
- } |
- }, |
- "cas": { |
- "id": "dumb_counter.cas", |
- "path": "counter/{Name}/cas", |
- "httpMethod": "POST", |
- "description": "Compare and swap a counter value", |
- "parameters": { |
- "Name": { |
- "type": "string", |
- "location": "path", |
- "required": true |
- } |
- }, |
- "parameterOrder": [ |
- "Name" |
- ], |
- "request": { |
- "$ref": "CASReq", |
- "parameterName": "resource" |
- } |
- }, |
- "currentvalue": { |
- "id": "dumb_counter.currentvalue", |
- "path": "counter/{Name}", |
- "httpMethod": "GET", |
- "description": "Returns the current value held by the named counter", |
- "parameters": { |
- "Name": { |
- "type": "string", |
- "location": "path", |
- "required": true |
- } |
- }, |
- "parameterOrder": [ |
- "Name" |
- ], |
- "response": { |
- "$ref": "CurrentValueRsp", |
- "parameterName": "resource" |
- } |
- }, |
- "list": { |
- "id": "dumb_counter.list", |
- "path": "counter", |
- "httpMethod": "GET", |
- "description": "Returns all of the available counters", |
- "response": { |
- "$ref": "ListRsp", |
- "parameterName": "resource" |
- } |
- } |
- } |
-} |