{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "Spring Security Reference API",
    "description" : "Generated from controllers; the Postman collection is verified against this spec by OpenApiPostmanSyncTest.",
    "version" : "1.0.0"
  },
  "tags" : [ {
    "name" : "Core Authentication",
    "description" : "JWT, JDBC, LDAP and OAuth2 demo endpoints covered by the Postman collection"
  } ],
  "paths" : {
    "/tenant-obj/documents" : {
      "post" : {
        "tags" : [ "tenant-object-controller" ],
        "operationId" : "create",
        "parameters" : [ {
          "name" : "content",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/resilient/mode" : {
      "post" : {
        "tags" : [ "resilience-controller" ],
        "operationId" : "setMode",
        "parameters" : [ {
          "name" : "value",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string",
            "enum" : [ "HEALTHY", "SLOW", "DOWN" ]
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/resilient/issue" : {
      "post" : {
        "tags" : [ "resilience-controller" ],
        "operationId" : "issue",
        "parameters" : [ {
          "name" : "subject",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/op/revoke" : {
      "post" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "revoke",
        "parameters" : [ {
          "name" : "token",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/op/issue" : {
      "post" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "issue_1",
        "parameters" : [ {
          "name" : "subject",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "scope",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string",
            "default" : "USER"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/browser/profile" : {
      "get" : {
        "tags" : [ "browser-lab-controller" ],
        "operationId" : "profile",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      },
      "post" : {
        "tags" : [ "browser-lab-controller" ],
        "operationId" : "updateProfile",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/apikey-life/rotate" : {
      "post" : {
        "tags" : [ "secure-api-key-lifecycle-controller" ],
        "operationId" : "rotate",
        "parameters" : [ {
          "name" : "prefix",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/apikey-life/revoke" : {
      "post" : {
        "tags" : [ "secure-api-key-lifecycle-controller" ],
        "operationId" : "revoke_1",
        "parameters" : [ {
          "name" : "prefix",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/apikey-life/issue" : {
      "post" : {
        "tags" : [ "secure-api-key-lifecycle-controller" ],
        "operationId" : "issue_2",
        "parameters" : [ {
          "name" : "subject",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "scopes",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "ttlSeconds",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int64",
            "default" : 300
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/apikey-life/issue-expired" : {
      "post" : {
        "tags" : [ "secure-api-key-lifecycle-controller" ],
        "operationId" : "issueExpired",
        "parameters" : [ {
          "name" : "subject",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "scopes",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/login" : {
      "post" : {
        "tags" : [ "Core Authentication" ],
        "summary" : "Login and obtain a JWT",
        "description" : "Authenticates against the configured providers (in-memory, JDBC, LDAP) and returns a signed JWT. 401 with error=invalid_credentials on failure.",
        "operationId" : "login",
        "parameters" : [ {
          "name" : "username",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "password",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        },
        "security" : [ ]
      }
    },
    "/tenant/data" : {
      "get" : {
        "tags" : [ "tenant-controller" ],
        "operationId" : "data",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/tenant-obj/documents/{id}" : {
      "get" : {
        "tags" : [ "tenant-object-controller" ],
        "operationId" : "get",
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/rs/profile" : {
      "get" : {
        "tags" : [ "resource-server-lab-controller" ],
        "operationId" : "profile_1",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/rs/admin/report" : {
      "get" : {
        "tags" : [ "resource-server-lab-controller" ],
        "operationId" : "adminReport",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/resilient/data" : {
      "get" : {
        "tags" : [ "resilience-controller" ],
        "operationId" : "data_1",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/rate-limit/public" : {
      "get" : {
        "tags" : [ "rate-limiting-controller" ],
        "operationId" : "pub",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/rate-limit/private" : {
      "get" : {
        "tags" : [ "rate-limiting-controller" ],
        "operationId" : "pvt",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/rate-limit/fail/{policy}" : {
      "get" : {
        "tags" : [ "rate-limiting-controller" ],
        "operationId" : "failPolicy",
        "parameters" : [ {
          "name" : "policy",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/op/resource" : {
      "get" : {
        "tags" : [ "opaque-resource-controller" ],
        "operationId" : "resource",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/op/admin/resource" : {
      "get" : {
        "tags" : [ "opaque-resource-controller" ],
        "operationId" : "adminResource",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/mtls/user" : {
      "get" : {
        "tags" : [ "mtls-controller" ],
        "operationId" : "user",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/mtls/admin" : {
      "get" : {
        "tags" : [ "mtls-controller" ],
        "operationId" : "admin",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/delegated/data" : {
      "get" : {
        "tags" : [ "delegated-access-controller" ],
        "operationId" : "data_2",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/browser/public" : {
      "get" : {
        "tags" : [ "browser-lab-controller" ],
        "operationId" : "publicPage",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/browser/admin/report" : {
      "get" : {
        "tags" : [ "browser-lab-controller" ],
        "operationId" : "adminReport_1",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    },
    "/apikey/user" : {
      "get" : {
        "tags" : [ "api-key-controller" ],
        "operationId" : "user_1",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/apikey/admin" : {
      "get" : {
        "tags" : [ "api-key-controller" ],
        "operationId" : "admin_1",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/apikey-life/user" : {
      "get" : {
        "tags" : [ "secure-api-key-lifecycle-controller" ],
        "operationId" : "user_2",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/apikey-life/admin" : {
      "get" : {
        "tags" : [ "secure-api-key-lifecycle-controller" ],
        "operationId" : "admin_2",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/secure" : {
      "get" : {
        "tags" : [ "Core Authentication" ],
        "summary" : "USER or ADMIN endpoint",
        "description" : "Requires ROLE_USER or ROLE_ADMIN.",
        "operationId" : "userSecure",
        "responses" : {
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        },
        "security" : [ {
          "bearerAuth" : [ ]
        }, {
          "basicAuth" : [ ]
        } ]
      }
    },
    "/api/public/hello" : {
      "get" : {
        "tags" : [ "Core Authentication" ],
        "summary" : "Public hello",
        "description" : "No authentication required.",
        "operationId" : "publicHello",
        "responses" : {
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        },
        "security" : [ ]
      }
    },
    "/api/oauth2/profile" : {
      "get" : {
        "tags" : [ "Core Authentication" ],
        "summary" : "OAuth2 profile",
        "description" : "Returns the OAuth2 user attributes after browser login, or the current principal otherwise.",
        "operationId" : "oauth2Profile",
        "responses" : {
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        },
        "security" : [ {
          "bearerAuth" : [ ]
        } ]
      }
    },
    "/api/ldap/users" : {
      "get" : {
        "tags" : [ "Core Authentication" ],
        "summary" : "LDAP authentication demo",
        "description" : "Requires ROLE_USER or ROLE_ADMIN.",
        "operationId" : "ldapUsers",
        "responses" : {
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        },
        "security" : [ {
          "bearerAuth" : [ ]
        }, {
          "basicAuth" : [ ]
        } ]
      }
    },
    "/api/jdbc/users" : {
      "get" : {
        "tags" : [ "Core Authentication" ],
        "summary" : "JDBC authentication demo",
        "description" : "Requires ROLE_USER or ROLE_ADMIN.",
        "operationId" : "jdbcUsers",
        "responses" : {
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        },
        "security" : [ {
          "bearerAuth" : [ ]
        }, {
          "basicAuth" : [ ]
        } ]
      }
    },
    "/api/auth/info" : {
      "get" : {
        "tags" : [ "Core Authentication" ],
        "summary" : "Current authentication info",
        "description" : "Who am I: username, authorities and detected auth type.",
        "operationId" : "authInfo",
        "responses" : {
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        },
        "security" : [ {
          "bearerAuth" : [ ]
        }, {
          "basicAuth" : [ ]
        } ]
      }
    },
    "/api/admin/secure" : {
      "get" : {
        "tags" : [ "Core Authentication" ],
        "summary" : "ADMIN-only endpoint",
        "description" : "Requires ROLE_ADMIN. 401 without credentials, 403 for ROLE_USER.",
        "operationId" : "adminSecure",
        "responses" : {
          "401" : {
            "description" : "Unauthorized",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        },
        "security" : [ {
          "bearerAuth" : [ ]
        }, {
          "basicAuth" : [ ]
        } ]
      }
    },
    "/op/introspect" : {
      "get" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "introspect",
        "parameters" : [ {
          "name" : "token",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      },
      "put" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "introspect_2",
        "parameters" : [ {
          "name" : "token",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      },
      "post" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "introspect_1",
        "parameters" : [ {
          "name" : "token",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      },
      "delete" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "introspect_3",
        "parameters" : [ {
          "name" : "token",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      },
      "options" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "introspect_6",
        "parameters" : [ {
          "name" : "token",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      },
      "head" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "introspect_5",
        "parameters" : [ {
          "name" : "token",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      },
      "patch" : {
        "tags" : [ "opaque-token-controller" ],
        "operationId" : "introspect_4",
        "parameters" : [ {
          "name" : "token",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : { }
                }
              }
            }
          }
        }
      }
    }
  },
  "components" : {
    "securitySchemes" : {
      "bearerAuth" : {
        "type" : "http",
        "scheme" : "bearer",
        "bearerFormat" : "JWT"
      },
      "basicAuth" : {
        "type" : "http",
        "scheme" : "basic"
      }
    }
  }
}
