我试图让图标部分包含我自己的图标,而不是通过尝试猴子补丁来谷歌搜索ApiConfigGenerator.get_descriptor_defaults
。不幸的是,当发现文档最终确定时,这些被忽略/丢弃。
{
"kind": "discovery#restDescription",
"etag": "...",
"discoveryVersion": "v1",
"id": "acme:v1",
"name": "acme",
"version": "v1",
"description": "Acme API",
"ownerDomain": "google.com",
"ownerName": "Google",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif", # <-- acme icon url here!
"x32": "http://www.google.com/images/icons/product/search-32.gif" # <--
},
"protocol": "rest",
"baseUrl": "http://acme.appspot.com/_ah/api/acme/v1/",
"basePath": "/_ah/api/acme/v1/",
"rootUrl": "http://acme.appspot.com/_ah/api/",
"servicePath": "acme/v1/",
"batchPath": "batch",
"parameters": {
如果有的话,我该如何解决这个问题?