#it would be included in the
1 messages · Page 1 of 1 (latest)
Something like this?
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
security:
- bearerAuth: []
show me what u have thus far.
{
"openapi": "3.1.0",
"info": {
"title": "FastAPI",
"version": "0.1.0"
},
"servers": [
{
"url": “https:://url…”,
"description": "Red publica"
}
],
"paths": {
"/get_info”: {
"get": {
"summary": "Get Info",
"operationId": "getInfo",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
},
"security": [{
"apiKey":[]
}
]
}
}
},
"components":{
"securitySchemes": {
"apiKey": {
"type": "apiKey",
"in": "header",
"name": "X-Api-Key"
}
}
}
}
I'm trying to use securitySchemes now
Thanks for taking a look btw
This is the response I get:
{
"response_data": {
"detail": "Not authenticated"
},
"status_code": 403,
"action_id": "g-effdad144a4c54294409eaa6fb1857a1ee49e93c"
}
@devout thistle been spinning my wheels on this, if you have any suggestions would really appreciate it