Created
May 3, 2019 12:57
-
-
Save nilsdebruin/9d84c3f72269feffffb7602a0a7d20a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.get("/secure_endpoint", tags=["test"]) | |
async def get_open_api_endpoint(api_key: APIKey = Depends(get_api_key)): | |
response = "How cool is this?" | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment