Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
76ce4446
Commit
76ce4446
authored
Dec 11, 2020
by
Bogdan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored: moved requestPost in the scripts folder so all schemas can acces it
parent
f3ccc2db
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
15 additions
and
105 deletions
+15
-105
add_car.py
...e/app/_add_use_case_scripts/car_sharing/tables/add_car.py
+1
-1
add_hash.py
.../app/_add_use_case_scripts/car_sharing/tables/add_hash.py
+1
-1
add_offer.py
...app/_add_use_case_scripts/car_sharing/tables/add_offer.py
+1
-1
add_publication.py
...dd_use_case_scripts/car_sharing/tables/add_publication.py
+1
-1
add_travel.py
...pp/_add_use_case_scripts/car_sharing/tables/add_travel.py
+1
-1
add_user.py
.../app/_add_use_case_scripts/car_sharing/tables/add_user.py
+1
-2
add_classification.py
...ase_scripts/crowd_journalism/tables/add_classification.py
+2
-14
add_event.py
...add_use_case_scripts/crowd_journalism/tables/add_event.py
+2
-14
add_purchase.py
..._use_case_scripts/crowd_journalism/tables/add_purchase.py
+1
-14
add_tag.py
.../_add_use_case_scripts/crowd_journalism/tables/add_tag.py
+1
-14
add_video.py
...add_use_case_scripts/crowd_journalism/tables/add_video.py
+1
-14
requestPost.py
...gic-microservice/app/_add_use_case_scripts/requestPost.py
+0
-0
add_user.py
...rvice/app/_add_use_case_scripts/vialog/tables/add_user.py
+1
-14
add_video.py
...vice/app/_add_use_case_scripts/vialog/tables/add_video.py
+1
-14
No files found.
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/tables/add_car.py
View file @
76ce4446
from
_add_use_case_scripts.
car_sharing.tables.
requestPost
import
postLayersToSwagger
,
postTableToSwagger
from
_add_use_case_scripts.requestPost
import
postLayersToSwagger
,
postTableToSwagger
def
add_table
(
use_case
:
str
,
table_name
:
str
):
def
add_table
(
use_case
:
str
,
table_name
:
str
):
'''
'''
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/tables/add_hash.py
View file @
76ce4446
from
_add_use_case_scripts.
car_sharing.tables.
requestPost
import
postLayersToSwagger
,
postTableToSwagger
from
_add_use_case_scripts.requestPost
import
postLayersToSwagger
,
postTableToSwagger
def
add_table
(
use_case
:
str
,
table_name
:
str
):
def
add_table
(
use_case
:
str
,
table_name
:
str
):
'''
'''
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/tables/add_offer.py
View file @
76ce4446
from
_add_use_case_scripts.
car_sharing.tables.
requestPost
import
postLayersToSwagger
,
postTableToSwagger
from
_add_use_case_scripts.requestPost
import
postLayersToSwagger
,
postTableToSwagger
def
add_table
(
use_case
:
str
,
table_name
:
str
):
def
add_table
(
use_case
:
str
,
table_name
:
str
):
'''
'''
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/tables/add_publication.py
View file @
76ce4446
from
_add_use_case_scripts.
car_sharing.tables.requestPost
import
postLayersToSwagger
,
postTableToSwagger
from
_add_use_case_scripts.
requestPost
import
postLayersToSwagger
,
postTableToSwagger
def
add_table
(
use_case
:
str
,
table_name
:
str
):
def
add_table
(
use_case
:
str
,
table_name
:
str
):
'''
'''
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/tables/add_travel.py
View file @
76ce4446
from
_add_use_case_scripts.
car_sharing.tables.requestPost
import
postLayersToSwagger
,
postTableToSwagger
from
_add_use_case_scripts.
requestPost
import
postLayersToSwagger
,
postTableToSwagger
def
add_table
(
use_case
:
str
,
table_name
:
str
):
def
add_table
(
use_case
:
str
,
table_name
:
str
):
'''
'''
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/car_sharing/tables/add_user.py
View file @
76ce4446
from
_add_use_case_scripts.car_sharing.tables.requestPost
import
postLayersToSwagger
,
postTableToSwagger
from
_add_use_case_scripts.requestPost
import
postLayersToSwagger
,
postTableToSwagger
def
add_table
(
use_case
:
str
,
table_name
:
str
):
def
add_table
(
use_case
:
str
,
table_name
:
str
):
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/crowd_journalism/tables/add_classification.py
View file @
76ce4446
from
_add_use_case_scripts.requestPost
import
postLayersToSwagger
,
postTableToSwagger
def
add_table
(
use_case
:
str
,
table_name
:
str
):
def
add_table
(
use_case
:
str
,
table_name
:
str
):
'''
'''
take the columns and add the mappings at the server
take the columns and add the mappings at the server
...
@@ -101,20 +102,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -101,20 +102,7 @@ def add_layers(use_case:str, table_name: str):
}
}
]
]
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
postLayersToSwagger
(
use_case
,
layers
)
for
layer
in
layers
:
url
=
f
"https://articonf1.itec.aau.at:30420/api/layers"
response
=
requests
.
post
(
url
,
verify
=
False
,
proxies
=
{
"http"
:
None
,
"https"
:
None
},
headers
=
{
"Authorization"
:
f
"Bearer {jwt}"
},
json
=
layer
)
print
(
url
+
": "
+
str
(
response
.
status_code
))
def
main
(
use_case
:
str
):
def
main
(
use_case
:
str
):
print
(
"Classification"
)
print
(
"Classification"
)
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/crowd_journalism/tables/add_event.py
View file @
76ce4446
from
_add_use_case_scripts.requestPost
import
postLayersToSwagger
,
postTableToSwagger
def
add_table
(
use_case
:
str
,
table_name
:
str
):
def
add_table
(
use_case
:
str
,
table_name
:
str
):
'''
'''
take the columns and add the mappings at the server
take the columns and add the mappings at the server
...
@@ -77,20 +78,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -77,20 +78,7 @@ def add_layers(use_case:str, table_name: str):
}
}
]
]
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
postLayersToSwagger
(
use_case
,
layers
)
for
layer
in
layers
:
url
=
f
"https://articonf1.itec.aau.at:30420/api/layers"
response
=
requests
.
post
(
url
,
verify
=
False
,
proxies
=
{
"http"
:
None
,
"https"
:
None
},
headers
=
{
"Authorization"
:
f
"Bearer {jwt}"
},
json
=
layer
)
print
(
url
+
": "
+
str
(
response
.
status_code
))
def
main
(
use_case
:
str
):
def
main
(
use_case
:
str
):
print
(
"event"
)
print
(
"event"
)
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/crowd_journalism/tables/add_purchase.py
View file @
76ce4446
...
@@ -96,20 +96,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -96,20 +96,7 @@ def add_layers(use_case:str, table_name: str):
}
}
]
]
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
postLayersToSwagger
(
use_case
,
layers
)
for
layer
in
layers
:
url
=
f
"https://articonf1.itec.aau.at:30420/api/layers"
response
=
requests
.
post
(
url
,
verify
=
False
,
proxies
=
{
"http"
:
None
,
"https"
:
None
},
headers
=
{
"Authorization"
:
f
"Bearer {jwt}"
},
json
=
layer
)
print
(
url
+
": "
+
str
(
response
.
status_code
))
def
main
(
use_case
:
str
):
def
main
(
use_case
:
str
):
print
(
"purchase"
)
print
(
"purchase"
)
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/crowd_journalism/tables/add_tag.py
View file @
76ce4446
...
@@ -50,20 +50,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -50,20 +50,7 @@ def add_layers(use_case:str, table_name: str):
}
}
]
]
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
postLayersToSwagger
(
use_case
,
layers
)
for
layer
in
layers
:
url
=
f
"https://articonf1.itec.aau.at:30420/api/layers"
response
=
requests
.
post
(
url
,
verify
=
False
,
proxies
=
{
"http"
:
None
,
"https"
:
None
},
headers
=
{
"Authorization"
:
f
"Bearer {jwt}"
},
json
=
layer
)
print
(
url
+
": "
+
str
(
response
.
status_code
))
def
main
(
use_case
:
str
):
def
main
(
use_case
:
str
):
print
(
"tag"
)
print
(
"tag"
)
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/crowd_journalism/tables/add_video.py
View file @
76ce4446
...
@@ -209,20 +209,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -209,20 +209,7 @@ def add_layers(use_case:str, table_name: str):
}
}
]
]
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
postLayersToSwagger
(
use_case
,
layers
)
for
layer
in
layers
:
url
=
f
"https://articonf1.itec.aau.at:30420/api/layers"
response
=
requests
.
post
(
url
,
verify
=
False
,
proxies
=
{
"http"
:
None
,
"https"
:
None
},
headers
=
{
"Authorization"
:
f
"Bearer {jwt}"
},
json
=
layer
)
print
(
url
+
": "
+
str
(
response
.
status_code
))
def
main
(
use_case
:
str
):
def
main
(
use_case
:
str
):
print
(
"video"
)
print
(
"video"
)
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/
car_sharing/tables/
requestPost.py
→
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/requestPost.py
View file @
76ce4446
File moved
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/vialog/tables/add_user.py
View file @
76ce4446
...
@@ -48,20 +48,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -48,20 +48,7 @@ def add_layers(use_case:str, table_name: str):
}
}
]
]
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
postLayersToSwagger
(
use_case
,
layers
)
for
layer
in
layers
:
url
=
f
"https://articonf1.itec.aau.at:30420/api/layers"
response
=
requests
.
post
(
url
,
verify
=
False
,
proxies
=
{
"http"
:
None
,
"https"
:
None
},
headers
=
{
"Authorization"
:
f
"Bearer {jwt}"
},
json
=
layer
)
print
(
url
+
": "
+
str
(
response
.
status_code
))
def
main
(
use_case
:
str
):
def
main
(
use_case
:
str
):
...
...
src/participation-hub/business-logic-microservice/app/_add_use_case_scripts/vialog/tables/add_video.py
View file @
76ce4446
...
@@ -138,20 +138,7 @@ def add_layers(use_case:str, table_name: str):
...
@@ -138,20 +138,7 @@ def add_layers(use_case:str, table_name: str):
}
}
]
]
jwt
=
TokenManager
.
getInstance
()
.
getToken
()
postLayersToSwagger
(
use_case
,
layers
)
for
layer
in
layers
:
url
=
f
"https://articonf1.itec.aau.at:30420/api/layers"
response
=
requests
.
post
(
url
,
verify
=
False
,
proxies
=
{
"http"
:
None
,
"https"
:
None
},
headers
=
{
"Authorization"
:
f
"Bearer {jwt}"
},
json
=
layer
)
print
(
url
+
": "
+
str
(
response
.
status_code
))
def
main
(
use_case
:
str
):
def
main
(
use_case
:
str
):
print
(
"Video"
)
print
(
"Video"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment