Last active
January 27, 2024 22:35
-
-
Save Miron-Anosov/b1c97f7f20c9af4cdf90f1f2d0bc6884 to your computer and use it in GitHub Desktop.
python dict format
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
author_del = { | |
'summary': 'This is an endpoint for delete author and his book too.', | |
'tags': ['Authors'], | |
'parameters': [ | |
{ | |
'in': 'path', | |
'name': 'id', | |
'schema': { | |
'fav_number': { | |
'type': 'integer' | |
} | |
}, | |
'required': True, | |
'description': "author's ID", | |
} | |
], | |
'responses': { | |
'204': { | |
'description': "author's ID" | |
}, | |
'400': { | |
'description': 'Validation Error.' | |
} | |
}, | |
'deprecated': True, | |
'description': "You can delete an author by ID, and the author's books will be deleted as well." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment