api_docs: Add "MessageId" common component.

To facilitate re-use of the same parameters in other paths, this commit
store the content of the parameter "message_id" in components.
This commit is contained in:
shubhamgupta2956
2020-04-20 20:16:14 +05:30
committed by Tim Abbott
parent 05bb1e7075
commit 7c3169a1d9
2 changed files with 16 additions and 49 deletions

View File

@@ -57,7 +57,7 @@ class OpenAPIToolsTest(ZulipTestCase):
'name': 'message_id',
'in': 'path',
'description':
'The ID of the message that you wish to edit/update.\n',
'The target message\'s ID.\n',
'example': 42,
'required': True,
'schema': {'type': 'integer'}