Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
install.api
Commits
35c8fd13
Commit
35c8fd13
authored
Mar 20, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
7afbef35
Pipeline
#21119
passed with stage
in 23 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
5 deletions
+27
-5
api_test.py
api_test.py
+19
-5
install_api.py
app/install/install_api.py
+8
-0
No files found.
api_test.py
View file @
35c8fd13
...
...
@@ -16,11 +16,11 @@ if __name__ == '__main__':
# res = requests.get('http://localhost:5000/connection/')
# print(res.json())
#
json_data
=
{}
# 设置项目链接
res
=
requests
.
post
(
'http://localhost:5000/connection/'
,
json
=
json_data
)
print
(
res
.
json
())
#
json_data = {}
#
#
#
设置项目链接
#
res = requests.post('http://localhost:5000/connection/', json=json_data)
#
print(res.json())
#
# # 测试项目数据库连接
# res = requests.get('http://localhost:5000/connection/jkq_test/HSGmtMEs/')
...
...
@@ -75,3 +75,17 @@ if __name__ == '__main__':
# # 远程升级
# res = requests.get('http://localhost:5000/upgrade/remote/')
# print(json.dumps(res.json(), indent=4))
# headers = {
# "User_Agent": "M3/3.1.7 (iPhone; iOS 12.0; Scale/3.00)",
# "Cookie": "JSESSIONID=45D5167DDB2531A565911EE71EE690E3",
# "ltoken": "yWm6cy4IjV9"
# }
#
# data1 = {"x": "0", "ordinal": "0", "_index": 0, "y": "0", "sectionBeanId": "vReportQuotaSection", "width": "10",
# "entityId": "193929", "spaceType": "36", "spaceId": "3894977586903598529"}
#
# res = requests.post('http://kq.huansi.net:8080/mobile_portal/seeyon/rest/mobilePortal/projection?option.n_a_s=1',
# headers=headers, json=data1)
#
# print(json.dumps(res.json(), indent=4, ensure_ascii=False))
# print(res.text)
app/install/install_api.py
View file @
35c8fd13
...
...
@@ -8,6 +8,14 @@ from app.install.install_service import InstallService
@
api
(
'install'
)
class
InstallAPI
(
ApiController
):
@
api
(
'test/<int:s>'
)
def
get_test
(
self
,
s
):
import
time
print
(
1
)
time
.
sleep
(
int
(
s
))
return
1
@
api
(
'runner'
)
def
get_list
(
self
):
'''
...
...
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