All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.tools.framework.importers.swagger.testdata.auth_default.json Maven / Gradle / Ivy

{
    "swagger": "2.0",
    "info": {
      "title": "Google Example Library API",
      "description": "A simple Google Example Library API.",
      "version": "v1"
    },
    "host": "library-example.cloud.goog",
    "securityDefinitions": {
        "test_auth": {
            "type": "oauth2",
            "authorizationUrl": "http://petstore.swagger.wordnik.com/api/oauth/dialog",
            "flow": "implicit",
            "x-issuer": "[email protected]",
            "x-jwks_uri": "https://www.googleapis.com/oauth2/v1/certs",
            "scopes": {
                "write_pets": "modify pets in your account",
                "read_pets": "read your pets"
            }
        },
        "test_auth2": {
            "type": "oauth2",
            "authorizationUrl": "http://petstore.swagger.wordnik.com/api/oauth/dialog",
            "flow": "implicit",
            "x-issuer": "[email protected]",
            "scopes": {
            }
        },
        "api_key": {
            "type": "apiKey",
            "name": "key",
            "in": "query"
        },
        "test_auth3": {
            "type": "oauth2",
            "authorizationUrl": "http://petstore.swagger.wordnik.com/api/oauth/dialog",
            "flow": "implicit",
            "x-jwks_uri": "https://www.googleapis.com/oauth2/v1/certs3",
            "scopes": {
            }
        }
    },
    "security": [
    ],
    "paths": {
        "/v1/pets": {
            "post": {
                "operationId": "simpleMethod",
                "parameters": [
                    {
                        "name": "myBodyRef",
                        "in": "body",
                          "schema": {
                              "properties": {
                                  "myStringA": {
                                      "type": "string"
                                  }
                              }
                          }
                    }
                ],
                "responses": {
                    "default": {
                        "description": "successful operation",
                        "schema": {
                                "$ref": "#/definitions/SimpleDef"
                        }
                    }
                },
                "security": [
                    {
                        "api_key": []
                    }
                ],
                "x-security": [
                  {
                    "test_auth3":  {
                       "audiences" : [
                          "www.test_auth3.com",
                          "www.test_auth3_2.com"
                       ]
                    }
                  },
                  {
                    "test_auth":  {
                       "audiences" : [
                          "www.test_auth.com"
                       ]
                    }
                  }
                ]
            },
            "delete": {
                "operationId": "apiKeyNotReqInherit",
                "responses": {
                    "default": {
                        "description": "successful operation",
                        "schema": {
                                "$ref": "#/definitions/SimpleDef"
                        }
                    }
                }
            },
            "get": {
                "operationId": "apiKeyReqOverride",
                "responses": {
                    "default": {
                        "description": "successful operation",
                        "schema": {
                                "$ref": "#/definitions/SimpleDef"
                        }
                    }
                },
                "security": [
                    {
                        "api_key": []
                    }
                ]
            },
            "put": {
                "operationId": "securitySectionEmpty",
                "responses": {
                    "default": {
                        "description": "successful operation",
                        "schema": {
                                "$ref": "#/definitions/SimpleDef"
                        }
                    }
                },
                "security": [
                ]
            }
        }
    },
    "definitions": {
        "SimpleDef": {
            "properties": {
                "myStringA": {
                    "type": "string"
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy