Implement API key authentication #1
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
APIキー認証機能の実装を行いました。
@@ -8,0 +23,4 @@return {'api_key': new_key, 'expires_at': expires_at}@app.get('/hello')def read_hello(x_api_key: str = Header(...), db: Session = Depends(get_db)):エンドポイントと関数の名前を揃えてください
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.