Update Skills
Browse files- SampleCode/SampleAddSkill.py +30 -0
- __pycache__/DbConnection.cpython-39.pyc +0 -0
- __pycache__/RemoveSkills.cpython-39.pyc +0 -0
- __pycache__/codium_21e69996-f261-491c-b95e-27a52c4d0bdf_RemoveSkills.cpython-39.pyc +0 -0
- __pycache__/codium_3c856f64-c856-4f68-850f-b88df0597d81_app.cpython-39-pytest-8.1.1.pyc +0 -0
- __pycache__/codium_462b422c-ea3d-4daf-a66b-eb59e13ee4ff_app.cpython-39-pytest-8.1.1.pyc +0 -0
- __pycache__/codium_6943ffe5-0f74-4fa1-91ae-eae0aa69801b_app.cpython-39-pytest-8.1.1.pyc +0 -0
- __pycache__/codium_696f40b7-0900-47c3-9db4-338f56060a4a_RemoveSkills.cpython-39.pyc +0 -0
- __pycache__/codium_73be9986-60eb-4ec5-966b-b250430995e4_app.cpython-39-pytest-8.1.1.pyc +0 -0
- __pycache__/codium_7a027c85-8333-422f-8323-6d430df9ceca_RemoveSkills.cpython-39.pyc +0 -0
- __pycache__/codium_7f7382b5-92b2-4cda-b0b9-34419b4c8ad0_app.cpython-39-pytest-8.1.1.pyc +0 -0
- __pycache__/codium_ac177f32-1e14-486e-aa26-dafb4a6f0ada_app.cpython-39-pytest-8.1.1.pyc +0 -0
- __pycache__/codium_c38517cd-fd60-4491-b532-9527abed7b0e_RemoveSkills.cpython-39.pyc +0 -0
- __pycache__/codium_d3642506-c248-40c5-8f9e-037d921b3d66_app.cpython-39-pytest-8.1.1.pyc +0 -0
SampleCode/SampleAddSkill.py
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import requests
|
2 |
+
from pydantic import BaseModel
|
3 |
+
|
4 |
+
# Define the class for the input data
|
5 |
+
class AddSkillDetails(BaseModel):
|
6 |
+
SkillName: str = 'SkillName'
|
7 |
+
SkillType: str = 'Soft Skill'
|
8 |
+
SkillScore: int = 10
|
9 |
+
|
10 |
+
# Define the data to be sent to the API
|
11 |
+
data = AddSkillDetails(
|
12 |
+
SkillName='TestSkill1',
|
13 |
+
SkillType='SkillType',
|
14 |
+
SkillScore=50 # Example score
|
15 |
+
)
|
16 |
+
|
17 |
+
# URL of the API endpoint
|
18 |
+
url = "https://vaibhav84-resumeapi.hf.space/AddSkillDetails/"
|
19 |
+
|
20 |
+
# Make the POST request
|
21 |
+
response = requests.post(url, json=data.dict())
|
22 |
+
|
23 |
+
# Check the response
|
24 |
+
if response.status_code == 200:
|
25 |
+
print("Skill details added successfully.")
|
26 |
+
print("Response:", response.json())
|
27 |
+
else:
|
28 |
+
print("Failed to add skill details.")
|
29 |
+
print("Status code:", response.status_code)
|
30 |
+
print("Response:", response.text)
|
__pycache__/DbConnection.cpython-39.pyc
ADDED
Binary file (778 Bytes). View file
|
|
__pycache__/RemoveSkills.cpython-39.pyc
ADDED
Binary file (781 Bytes). View file
|
|
__pycache__/codium_21e69996-f261-491c-b95e-27a52c4d0bdf_RemoveSkills.cpython-39.pyc
ADDED
Binary file (1.56 kB). View file
|
|
__pycache__/codium_3c856f64-c856-4f68-850f-b88df0597d81_app.cpython-39-pytest-8.1.1.pyc
ADDED
Binary file (4.27 kB). View file
|
|
__pycache__/codium_462b422c-ea3d-4daf-a66b-eb59e13ee4ff_app.cpython-39-pytest-8.1.1.pyc
ADDED
Binary file (3.14 kB). View file
|
|
__pycache__/codium_6943ffe5-0f74-4fa1-91ae-eae0aa69801b_app.cpython-39-pytest-8.1.1.pyc
ADDED
Binary file (3.14 kB). View file
|
|
__pycache__/codium_696f40b7-0900-47c3-9db4-338f56060a4a_RemoveSkills.cpython-39.pyc
ADDED
Binary file (1.53 kB). View file
|
|
__pycache__/codium_73be9986-60eb-4ec5-966b-b250430995e4_app.cpython-39-pytest-8.1.1.pyc
ADDED
Binary file (3.14 kB). View file
|
|
__pycache__/codium_7a027c85-8333-422f-8323-6d430df9ceca_RemoveSkills.cpython-39.pyc
ADDED
Binary file (1.47 kB). View file
|
|
__pycache__/codium_7f7382b5-92b2-4cda-b0b9-34419b4c8ad0_app.cpython-39-pytest-8.1.1.pyc
ADDED
Binary file (5.02 kB). View file
|
|
__pycache__/codium_ac177f32-1e14-486e-aa26-dafb4a6f0ada_app.cpython-39-pytest-8.1.1.pyc
ADDED
Binary file (4.27 kB). View file
|
|
__pycache__/codium_c38517cd-fd60-4491-b532-9527abed7b0e_RemoveSkills.cpython-39.pyc
ADDED
Binary file (1.47 kB). View file
|
|
__pycache__/codium_d3642506-c248-40c5-8f9e-037d921b3d66_app.cpython-39-pytest-8.1.1.pyc
ADDED
Binary file (4.27 kB). View file
|
|