forked from LBRYCommunity/lbry-sdk
Generates docs for comments
This commit is contained in:
parent
a04ba606e6
commit
78606ed4b8
2 changed files with 246 additions and 113 deletions
318
docs/api.json
318
docs/api.json
File diff suppressed because one or more lines are too long
|
@ -320,9 +320,45 @@ class Examples(CommandTestCase):
|
||||||
await self.on_transaction_dict(big_stream)
|
await self.on_transaction_dict(big_stream)
|
||||||
await self.generate(1)
|
await self.generate(1)
|
||||||
await self.on_transaction_dict(big_stream)
|
await self.on_transaction_dict(big_stream)
|
||||||
|
|
||||||
await self.daemon.jsonrpc_channel_abandon(self.get_claim_id(big_stream))
|
await self.daemon.jsonrpc_channel_abandon(self.get_claim_id(big_stream))
|
||||||
await self.generate(1)
|
await self.generate(1)
|
||||||
|
|
||||||
|
# comments
|
||||||
|
|
||||||
|
comment = await r(
|
||||||
|
'Posting a comment as your channel',
|
||||||
|
'comment', 'create', '--comment="Thank you Based God"',
|
||||||
|
'--channel_name=@channel', f'--claim_id={stream_id}'
|
||||||
|
)
|
||||||
|
|
||||||
|
reply = await r(
|
||||||
|
'You can r',
|
||||||
|
'comment', 'create',
|
||||||
|
'--comment="I have photographic evidence confirming Sasquatch exists"',
|
||||||
|
f'--channel_name=@channel', f'--claim_id={stream_id}',
|
||||||
|
f'--parent_id={comment["comment_id"]}'
|
||||||
|
)
|
||||||
|
|
||||||
|
await r(
|
||||||
|
'List all comments on a claim',
|
||||||
|
'comment', 'list', stream_id, '--include_replies'
|
||||||
|
)
|
||||||
|
|
||||||
|
await r(
|
||||||
|
'List a comment thread replying to a top level comment',
|
||||||
|
'comment', 'list', stream_id,
|
||||||
|
f'--parent_id={comment["comment_id"]}'
|
||||||
|
)
|
||||||
|
|
||||||
|
await r(
|
||||||
|
'Edit the contents of a comment',
|
||||||
|
'comment', 'edit', 'Where there was once sasquatch, there is not',
|
||||||
|
f'--comment_id={comment["comment_id"]}'
|
||||||
|
)
|
||||||
|
|
||||||
|
await self.daemon.jsonrpc_comment_abandon(reply['comment_id'])
|
||||||
|
|
||||||
# files
|
# files
|
||||||
|
|
||||||
file_list_result = (await r(
|
file_list_result = (await r(
|
||||||
|
@ -369,6 +405,11 @@ class Examples(CommandTestCase):
|
||||||
|
|
||||||
# abandon all the things
|
# abandon all the things
|
||||||
|
|
||||||
|
await r(
|
||||||
|
'Abandon a comment',
|
||||||
|
'comment', 'abandon', comment['comment_id']
|
||||||
|
)
|
||||||
|
|
||||||
abandon_stream = await r(
|
abandon_stream = await r(
|
||||||
'Abandon a stream claim',
|
'Abandon a stream claim',
|
||||||
'stream', 'abandon', stream_id
|
'stream', 'abandon', stream_id
|
||||||
|
|
Loading…
Reference in a new issue