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

com.google.api.tools.framework.importers.swagger.testdata.oauth_in_security.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": [
        {
            "api_key": []
        },
        {
            "test_auth2": []
        }
    ],
    "x-security": [
        {
            "test_auth3": {
              "audiences" : ["foobar"]
            }
        }
    ],
    "paths": {
        "/v1/pets": {
            "post": {
                "operationId": "RedefiningSecurityAndXSecurity",
                "parameters": [
                    {
                        "name": "myBodyRef",
                        "in": "body",
                          "schema": {
                              "properties": {
                                  "myStringA": {
                                      "type": "string"
                                  }
                              }
                          }
                    }
                ],
                "responses": {
                    "default": {
                        "description": "successful operation",
                        "schema": {
                                "$ref": "#/definitions/SimpleDef"
                        }
                    }
                },
                "security": [
                    {
                        "api_key": [],
                        "test_auth": []
                    },
                    {
                        "test_auth2": []
                    }
                ],
                "x-security": [
                    {
                        "test_auth3": {
                          "audiences" : ["foobar_second"]
                        }
                    }
                ]
            },
            "delete": {
                "operationId": "InheritSecurityAndXSecurity",
                "responses": {
                    "default": {
                        "description": "successful operation",
                        "schema": {
                                "$ref": "#/definitions/SimpleDef"
                        }
                    }
                }
            },
            "get": {
                "operationId": "RemoveSecurityByXSecurity",
                "responses": {
                    "default": {
                        "description": "successful operation",
                        "schema": {
                                "$ref": "#/definitions/SimpleDef"
                        }
                    }
                },
                "x-security": [
                ]
            },
            "put": {
                "operationId": "RemoveSecurityBySecurity",
                "responses": {
                    "default": {
                        "description": "successful operation",
                        "schema": {
                                "$ref": "#/definitions/SimpleDef"
                        }
                    }
                },
                "security": [
                ]
            }
        }
    },
    "definitions": {
        "SimpleDef": {
            "properties": {
                "myStringA": {
                    "type": "string"
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy