Skip to content

Commit a6757b7

Browse files
author
Gonchik Tsymzhitov
committed
Bitbucket: method for markup
1 parent ef14583 commit a6757b7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

atlassian/bitbucket.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def get_changelog(self, project, repository, ref_from, ref_to, limit=99999):
839839
params['limit'] = limit
840840
return (self.get(url, params=params) or {}).get('values')
841841

842-
def get_file_list(self, project, repository, query, limit=100000):
842+
def get_file_list(self, project, repository, query=None, limit=100000):
843843
"""
844844
Retrieve a page of files from particular directory of a repository.
845845
The search is done recursively, so all files from any sub-directory of the specified directory will be returned.
@@ -1082,3 +1082,12 @@ def disable_branching_model(self, project, repository):
10821082
project=project,
10831083
repository=repository)
10841084
return self.delete(url)
1085+
1086+
def markup_preview(self, data):
1087+
"""
1088+
Preview generated HTML for the given markdown content.
1089+
Only authenticated users may call this resource.
1090+
:param data:
1091+
:return:
1092+
"""
1093+
return self.post('rest/api/1.0/markup/preview', data=data)

0 commit comments

Comments
 (0)