#it would be included in the

1 messages · Page 1 of 1 (latest)

sick anchor
#

Something like this?

#

components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT

security:

  • bearerAuth: []
devout thistle
#

What're u trying to pass this within, The schema JSON Format?

#

@sick anchor

sick anchor
#

Yes

#

Trying to pass it in a path in my API
"paths": {
"/get_info": {}
}

devout thistle
#

show me what u have thus far.

sick anchor
#

{
"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"
}

sick anchor
#

@devout thistle been spinning my wheels on this, if you have any suggestions would really appreciate it