Skip to content

Instantly share code, notes, and snippets.

@Miron-Anosov
Last active January 27, 2024 22:35
Show Gist options
  • Save Miron-Anosov/b1c97f7f20c9af4cdf90f1f2d0bc6884 to your computer and use it in GitHub Desktop.
Save Miron-Anosov/b1c97f7f20c9af4cdf90f1f2d0bc6884 to your computer and use it in GitHub Desktop.
python dict format
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