I'm trying to access AWX API from a script Python.
The documentation has the ressource /api/v1/authtoken/ for that, however when visiting the URL:
https://myHost/api/v1/authtoken/
It says that it can't find the ressource.
I also tried:
response = requests.get('https://myHost/api/login/', verify=False,
data = json.dumps({"username": "user","password": "pass"}))
results = json.loads(response.text)
token = results['token']
But I get a :
ValueError: No JSON object could be decoded
AWX version: 10.0.0