Skip to content

Commit

Permalink
get_project: print response as actual JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
finngl committed May 14, 2024
1 parent 7aa3c02 commit 0d23761
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions get_project_json.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
from pathlib import Path
from json import dumps

import common
from functions import get_project_json
Expand All @@ -19,5 +19,6 @@
mr_base_url=common.MICROREACT_BASE_URL,
verify = not args.noverify
)
print(f"REST response: {str(rest_response)}")
print(rest_response.json())
print(f"HTTP response code: {str(rest_response)}")
print("Response as actual JSON:")
print(dumps(rest_response.json()))

0 comments on commit 0d23761

Please sign in to comment.