mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* add DateTime sans mgo * change all uses of strfmt.DateTime to common.DateTime, remove test strfmt usage * remove api tests, system-test dep on api test multiple reasons to remove the api tests: * awkward dependency with fn_go meant generating bindings on a branched fn to vendor those to test new stuff. this is at a minimum not at all intuitive, worth it, nor a fun way to spend the finite amount of time we have to live. * api tests only tested a subset of functionality that the server/ api tests already test, and we risk having tests where one tests some thing and the other doesn't. let's not. we have too many test suites as it is, and these pretty much only test that we updated the fn_go bindings, which is actually a hassle as noted above and the cli will pretty quickly figure out anyway. * fn_go relies on openapi, which relies on mgo, which is deprecated and we'd like to remove as a dependency. openapi is a _huge_ dep built in a NIH fashion, that cannot simply remove the mgo dep as users may be using it. we've now stolen their date time and otherwise killed usage of it in fn core, for fn_go it still exists but that's less of a problem. * update deps removals: * easyjson * mgo * go-openapi * mapstructure * fn_go * purell * go-validator also, had to lock docker. we shouldn't use docker on master anyway, they strongly advise against that. had no luck with latest version rev, so i locked it to what we were using before. until next time. the rest is just playing dep roulette, those end up removing a ton tho * fix exec test to work * account for john le cache
321 lines
11 KiB
JSON
321 lines
11 KiB
JSON
{
|
|
"auth": {
|
|
"oauth2": {
|
|
"scopes": {
|
|
"https://www.googleapis.com/auth/siteverification": {
|
|
"description": "Manage the list of sites and domains you control"
|
|
},
|
|
"https://www.googleapis.com/auth/siteverification.verify_only": {
|
|
"description": "Manage your new site verifications with Google"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"basePath": "/siteVerification/v1/",
|
|
"baseUrl": "https://www.googleapis.com/siteVerification/v1/",
|
|
"batchPath": "batch/siteVerification/v1",
|
|
"description": "Verifies ownership of websites or domains with Google.",
|
|
"discoveryVersion": "v1",
|
|
"documentationLink": "https://developers.google.com/site-verification/",
|
|
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/psOF7vG1wY9XuCDiSUQcUhpYG2c\"",
|
|
"icons": {
|
|
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
|
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
|
},
|
|
"id": "siteVerification:v1",
|
|
"kind": "discovery#restDescription",
|
|
"name": "siteVerification",
|
|
"ownerDomain": "google.com",
|
|
"ownerName": "Google",
|
|
"parameters": {
|
|
"alt": {
|
|
"default": "json",
|
|
"description": "Data format for the response.",
|
|
"enum": [
|
|
"json"
|
|
],
|
|
"enumDescriptions": [
|
|
"Responses with Content-Type of application/json"
|
|
],
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"fields": {
|
|
"description": "Selector specifying which fields to include in a partial response.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"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",
|
|
"type": "string"
|
|
},
|
|
"oauth_token": {
|
|
"description": "OAuth 2.0 token for the current user.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"prettyPrint": {
|
|
"default": "false",
|
|
"description": "Returns response with indentations and line breaks.",
|
|
"location": "query",
|
|
"type": "boolean"
|
|
},
|
|
"quotaUser": {
|
|
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"userIp": {
|
|
"description": "Deprecated. Please use quotaUser instead.",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"protocol": "rest",
|
|
"resources": {
|
|
"webResource": {
|
|
"methods": {
|
|
"delete": {
|
|
"description": "Relinquish ownership of a website or domain.",
|
|
"httpMethod": "DELETE",
|
|
"id": "siteVerification.webResource.delete",
|
|
"parameterOrder": [
|
|
"id"
|
|
],
|
|
"parameters": {
|
|
"id": {
|
|
"description": "The id of a verified site or domain.",
|
|
"location": "path",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "webResource/{id}",
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/siteverification"
|
|
]
|
|
},
|
|
"get": {
|
|
"description": "Get the most current data for a website or domain.",
|
|
"httpMethod": "GET",
|
|
"id": "siteVerification.webResource.get",
|
|
"parameterOrder": [
|
|
"id"
|
|
],
|
|
"parameters": {
|
|
"id": {
|
|
"description": "The id of a verified site or domain.",
|
|
"location": "path",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "webResource/{id}",
|
|
"response": {
|
|
"$ref": "SiteVerificationWebResourceResource"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/siteverification"
|
|
]
|
|
},
|
|
"getToken": {
|
|
"description": "Get a verification token for placing on a website or domain.",
|
|
"httpMethod": "POST",
|
|
"id": "siteVerification.webResource.getToken",
|
|
"path": "token",
|
|
"request": {
|
|
"$ref": "SiteVerificationWebResourceGettokenRequest"
|
|
},
|
|
"response": {
|
|
"$ref": "SiteVerificationWebResourceGettokenResponse"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/siteverification",
|
|
"https://www.googleapis.com/auth/siteverification.verify_only"
|
|
]
|
|
},
|
|
"insert": {
|
|
"description": "Attempt verification of a website or domain.",
|
|
"httpMethod": "POST",
|
|
"id": "siteVerification.webResource.insert",
|
|
"parameterOrder": [
|
|
"verificationMethod"
|
|
],
|
|
"parameters": {
|
|
"verificationMethod": {
|
|
"description": "The method to use for verifying a site or domain.",
|
|
"location": "query",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "webResource",
|
|
"request": {
|
|
"$ref": "SiteVerificationWebResourceResource"
|
|
},
|
|
"response": {
|
|
"$ref": "SiteVerificationWebResourceResource"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/siteverification",
|
|
"https://www.googleapis.com/auth/siteverification.verify_only"
|
|
]
|
|
},
|
|
"list": {
|
|
"description": "Get the list of your verified websites and domains.",
|
|
"httpMethod": "GET",
|
|
"id": "siteVerification.webResource.list",
|
|
"path": "webResource",
|
|
"response": {
|
|
"$ref": "SiteVerificationWebResourceListResponse"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/siteverification"
|
|
]
|
|
},
|
|
"patch": {
|
|
"description": "Modify the list of owners for your website or domain. This method supports patch semantics.",
|
|
"httpMethod": "PATCH",
|
|
"id": "siteVerification.webResource.patch",
|
|
"parameterOrder": [
|
|
"id"
|
|
],
|
|
"parameters": {
|
|
"id": {
|
|
"description": "The id of a verified site or domain.",
|
|
"location": "path",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "webResource/{id}",
|
|
"request": {
|
|
"$ref": "SiteVerificationWebResourceResource"
|
|
},
|
|
"response": {
|
|
"$ref": "SiteVerificationWebResourceResource"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/siteverification"
|
|
]
|
|
},
|
|
"update": {
|
|
"description": "Modify the list of owners for your website or domain.",
|
|
"httpMethod": "PUT",
|
|
"id": "siteVerification.webResource.update",
|
|
"parameterOrder": [
|
|
"id"
|
|
],
|
|
"parameters": {
|
|
"id": {
|
|
"description": "The id of a verified site or domain.",
|
|
"location": "path",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "webResource/{id}",
|
|
"request": {
|
|
"$ref": "SiteVerificationWebResourceResource"
|
|
},
|
|
"response": {
|
|
"$ref": "SiteVerificationWebResourceResource"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/siteverification"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"revision": "20161114",
|
|
"rootUrl": "https://www.googleapis.com/",
|
|
"schemas": {
|
|
"SiteVerificationWebResourceGettokenRequest": {
|
|
"id": "SiteVerificationWebResourceGettokenRequest",
|
|
"properties": {
|
|
"site": {
|
|
"description": "The site for which a verification token will be generated.",
|
|
"properties": {
|
|
"identifier": {
|
|
"description": "The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"description": "The type of resource to be verified. Can be SITE or INET_DOMAIN (domain name).",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"verificationMethod": {
|
|
"description": "The verification method that will be used to verify this site. For sites, 'FILE' or 'META' methods may be used. For domains, only 'DNS' may be used.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"SiteVerificationWebResourceGettokenResponse": {
|
|
"id": "SiteVerificationWebResourceGettokenResponse",
|
|
"properties": {
|
|
"method": {
|
|
"description": "The verification method to use in conjunction with this token. For FILE, the token should be placed in the top-level directory of the site, stored inside a file of the same name. For META, the token should be placed in the HEAD tag of the default page that is loaded for the site. For DNS, the token should be placed in a TXT record of the domain.",
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"description": "The verification token. The token must be placed appropriately in order for verification to succeed.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"SiteVerificationWebResourceListResponse": {
|
|
"id": "SiteVerificationWebResourceListResponse",
|
|
"properties": {
|
|
"items": {
|
|
"description": "The list of sites that are owned by the authenticated user.",
|
|
"items": {
|
|
"$ref": "SiteVerificationWebResourceResource"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"SiteVerificationWebResourceResource": {
|
|
"id": "SiteVerificationWebResourceResource",
|
|
"properties": {
|
|
"id": {
|
|
"description": "The string used to identify this site. This value should be used in the \"id\" portion of the REST URL for the Get, Update, and Delete operations.",
|
|
"type": "string"
|
|
},
|
|
"owners": {
|
|
"description": "The email addresses of all verified owners.",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"site": {
|
|
"description": "The address and type of a site that is verified or will be verified.",
|
|
"properties": {
|
|
"identifier": {
|
|
"description": "The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"description": "The site type. Can be SITE or INET_DOMAIN (domain name).",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"servicePath": "siteVerification/v1/",
|
|
"title": "Google Site Verification API",
|
|
"version": "v1"
|
|
} |