adaptsapi 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {adaptsapi-0.1.1/src/adaptsapi.egg-info → adaptsapi-0.1.2}/PKG-INFO +1 -1
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/pyproject.toml +1 -1
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/setup.cfg +1 -1
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/setup.py +1 -1
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi/generate_docs.py +4 -4
- {adaptsapi-0.1.1 → adaptsapi-0.1.2/src/adaptsapi.egg-info}/PKG-INFO +1 -1
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/tests/test_generate_docs.py +5 -2
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/LICENSE +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/README.md +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi/__init__.py +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi/cli.py +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi/config.py +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi.egg-info/SOURCES.txt +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi.egg-info/dependency_links.txt +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi.egg-info/entry_points.txt +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi.egg-info/requires.txt +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/src/adaptsapi.egg-info/top_level.txt +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/tests/test_cli.py +0 -0
- {adaptsapi-0.1.1 → adaptsapi-0.1.2}/tests/test_config.py +0 -0
|
@@ -76,9 +76,9 @@ def post(
|
|
|
76
76
|
|
|
77
77
|
# 2) Add metadata
|
|
78
78
|
_populate_metadata(payload)
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
headers = {
|
|
81
|
-
"
|
|
81
|
+
"x-api-key": token,
|
|
82
82
|
"Content-Type": "application/json",
|
|
83
|
-
}
|
|
84
|
-
return requests.post(endpoint, json=
|
|
83
|
+
}
|
|
84
|
+
return requests.post(endpoint, json=payload, headers=headers, timeout=timeout)
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import requests
|
|
2
|
+
import os
|
|
3
|
+
from adaptsapi.generate_docs import post, PayloadValidationError
|
|
2
4
|
|
|
3
5
|
payload = {
|
|
4
6
|
"user_id": "user-001",
|
|
@@ -13,7 +15,8 @@ payload = {
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
try:
|
|
16
|
-
|
|
18
|
+
AUTH_TOKEN = os.getenv("ADAPTS_API_KEY")
|
|
19
|
+
resp = post("https://ycdwnfjohl.execute-api.us-east-1.amazonaws.com/prod/generate_wiki_docs", AUTH_TOKEN, payload)
|
|
17
20
|
resp.raise_for_status()
|
|
18
21
|
print(resp.json())
|
|
19
22
|
except PayloadValidationError as e:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|