summaryrefslogtreecommitdiffstats
path: root/ci/htmlize/htmlize.py
diff options
context:
space:
mode:
Diffstat (limited to 'ci/htmlize/htmlize.py')
-rw-r--r--ci/htmlize/htmlize.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ci/htmlize/htmlize.py b/ci/htmlize/htmlize.py
index da6a6cf..135d401 100644
--- a/ci/htmlize/htmlize.py
+++ b/ci/htmlize/htmlize.py
@@ -15,9 +15,9 @@ def main(args):
# Merging two specs
api_response = requests.get(args.api_declaration_url)
- api_response = json.loads(api_response.content)
+ api_response = api_response.json()
resource_response = requests.get(args.resource_listing_url)
- resource_response = json.loads(resource_response.content)
+ resource_response = resource_response.json()
resource_response['models'] = api_response['models']
resource_response['apis'] = api_response['apis']
@@ -41,7 +41,7 @@ if __name__ == '__main__':
type=str,
required=False,
default=('http://testresults.opnfv.org'
- '/test/swagger/resources.json'),
+ '/test/swagger/models.json'),
help='Resource Listing Spec File')
parser.add_argument('-au', '--api-declaration-url',
type=str,