polyapi-python 0.2.5.dev7__py3-none-any.whl → 0.2.5.dev8__py3-none-any.whl
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.
- polyapi/rendered_spec.py +4 -5
- {polyapi_python-0.2.5.dev7.dist-info → polyapi_python-0.2.5.dev8.dist-info}/METADATA +1 -1
- {polyapi_python-0.2.5.dev7.dist-info → polyapi_python-0.2.5.dev8.dist-info}/RECORD +6 -6
- {polyapi_python-0.2.5.dev7.dist-info → polyapi_python-0.2.5.dev8.dist-info}/LICENSE +0 -0
- {polyapi_python-0.2.5.dev7.dist-info → polyapi_python-0.2.5.dev8.dist-info}/WHEEL +0 -0
- {polyapi_python-0.2.5.dev7.dist-info → polyapi_python-0.2.5.dev8.dist-info}/top_level.txt +0 -0
polyapi/rendered_spec.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import os
|
|
2
|
+
from typing import Optional
|
|
2
3
|
|
|
3
4
|
import requests
|
|
4
5
|
from polyapi.config import get_api_key_and_url
|
|
@@ -24,8 +25,7 @@ def update_rendered_spec(api_key: str, spec: SpecificationDto):
|
|
|
24
25
|
# use super key on develop-k8s here!
|
|
25
26
|
_, base_url = get_api_key_and_url()
|
|
26
27
|
if not base_url:
|
|
27
|
-
|
|
28
|
-
base_url = "http://localhost:8000"
|
|
28
|
+
base_url = os.environ.get("HOST_URL")
|
|
29
29
|
|
|
30
30
|
url = f"{base_url}/functions/rendered-specs"
|
|
31
31
|
headers = {"Authorization": f"Bearer {api_key}"}
|
|
@@ -37,8 +37,7 @@ def update_rendered_spec(api_key: str, spec: SpecificationDto):
|
|
|
37
37
|
def _get_spec(api_key: str, spec_id: str) -> Optional[SpecificationDto]:
|
|
38
38
|
_, base_url = get_api_key_and_url()
|
|
39
39
|
if not base_url:
|
|
40
|
-
|
|
41
|
-
base_url = "http://localhost:8000"
|
|
40
|
+
base_url = os.environ.get("HOST_URL")
|
|
42
41
|
|
|
43
42
|
url = f"{base_url}/specs"
|
|
44
43
|
headers = {"Authorization": f"Bearer {api_key}"}
|
|
@@ -12,15 +12,15 @@ polyapi/execute.py,sha256=kXnvlNQ7nz9cRlV2_5gXH09UCmyiDP5zi3wiAw0uDuk,1943
|
|
|
12
12
|
polyapi/function_cli.py,sha256=4G4xqDCF7HSVERXRJx1D3uytNI1_mhaU-bNFeNRsQ3E,9231
|
|
13
13
|
polyapi/generate.py,sha256=dtS6Wyb_lq9FrOs7NA_ceKCX9rogx2_3Fp57_hGwdDc,7957
|
|
14
14
|
polyapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
polyapi/rendered_spec.py,sha256
|
|
15
|
+
polyapi/rendered_spec.py,sha256=yfOqZRx8BOkw5QfdrUx1m1SY2ne0Q1BolPmuSYIWwow,2230
|
|
16
16
|
polyapi/schema.py,sha256=VQl3YJNiejShAcgPHq3IyRMiwpVEy52Jq5alB-65udg,2956
|
|
17
17
|
polyapi/server.py,sha256=n-nMGjXoq9T9ZwE2EBDkAaxJ7UytConGaHthkjbkCXA,1894
|
|
18
18
|
polyapi/typedefs.py,sha256=mRqwd2LKofxNn_VSKxBzixni2j-tai8mfTQ0Wi2aLNM,1487
|
|
19
19
|
polyapi/utils.py,sha256=CXzQC5u8vNMyS7f3E45plSuB2EodevDmkOXhHA2zxoc,7108
|
|
20
20
|
polyapi/variables.py,sha256=d36-trnfTL_8m2NkorMiImb4O3UrJbiFV38CHxV5i0A,4200
|
|
21
21
|
polyapi/webhook.py,sha256=GvnS49Vl4k5STTvv4KKUnUAyn27OhIHHXChFmiI53Cs,4849
|
|
22
|
-
polyapi_python-0.2.5.
|
|
23
|
-
polyapi_python-0.2.5.
|
|
24
|
-
polyapi_python-0.2.5.
|
|
25
|
-
polyapi_python-0.2.5.
|
|
26
|
-
polyapi_python-0.2.5.
|
|
22
|
+
polyapi_python-0.2.5.dev8.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
|
|
23
|
+
polyapi_python-0.2.5.dev8.dist-info/METADATA,sha256=gdKjrAjM_jx0tr5Ux2PreknnGgiLfPaiRVyou3rcLDI,4867
|
|
24
|
+
polyapi_python-0.2.5.dev8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
25
|
+
polyapi_python-0.2.5.dev8.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
|
|
26
|
+
polyapi_python-0.2.5.dev8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|