SWAGGER_SETTINGS = {
'USE_SESSION_AUTH': False, # Admin login orqali emas, token orqali ishlatsin
'SECURITY_DEFINITIONS': {
'Bearer': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header',
'description': 'JWT formatida token kiriting: Bearer <token>'
}
},
'DEFAULT_MODEL_RENDERING': 'example',
"PERSIST_AUTH": True, # π‘ Tokenni saqlab qoladi
}#swagger #localstorage
π5