Skip to content

Commit

Permalink
Add a command line arg for the FIA_API_URL, move the FIA_API_API_KEY …
Browse files Browse the repository at this point in the history
…to position 2
  • Loading branch information
HumzahJavid committed Aug 12, 2024
1 parent 67249c3 commit fe064c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/specification_migration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
This script moves the all json specifications from this repository to the database via PUT calls to the FIA_API
It should be run from the root directory of this repository, and expects 1 command line arg the FIA_API_API_KEY
It should be run from the root directory of this repository.
It expects 2 command line args, the FIA_API_URL and the FIA_API_API_KEY
"""

import json
Expand All @@ -10,9 +11,9 @@

import requests

FIA_API_API_KEY = sys.argv[1]
FIA_API_PATH = sys.argv[1]
FIA_API_API_KEY = sys.argv[2]

FIA_API_PATH: str = "http://localhost:8000"
successful_update: int = 200
auth_headers: json = {"Authorization": f"Bearer {FIA_API_API_KEY}", "accept": "application/json"}

Expand Down

0 comments on commit fe064c2

Please sign in to comment.