Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apiary2postman/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ def parseResourceGroups(apiary, environment_vals, only_collection, single_collec
request['descriptionFormat'] = 'html'
request['method'] = action['method']

request['url'] = "{{HOST}}"+sub_url
sub_url2 = action['attributes']['uriTemplate']
sub_url2 = sub_url2.replace(sub_url, '')
request['url'] = "{{HOST}}" + sub_url + sub_url2
if only_collection:
for value in environment_vals:
if value['name'] == 'HOST':
Expand Down