Ejemplo
El resultado depende de la operación; el ejemplo incluido en el botón «Ejemplo» reproduce un caso válido para esta herramienta.
{
"openapi": "3.0.3",
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
},
"apiKey": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key"
}
}
},
"security": [
{
"bearerAuth": []
}
],
"paths": {
"/pets": {
"get": {
"responses": {
"200": {
"description": "OK"
}
}
},
"post": {
"security": [
{
"apiKey": []
}
],
"responses": {
"201": {
"description": "Created"
}
}
}
}
}
}