Skip to content

Commit f3a7bc5

Browse files
author
v_xiangbiaowu
committed
Update English StreamisAppConnDesignDocument
1 parent de2dd79 commit f3a7bc5

File tree

5 files changed

+57
-99
lines changed

5 files changed

+57
-99
lines changed

docs/en_US/0.2.0/FlinkEnginePluginCompileDocument.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

docs/en_US/0.2.0/StreamisAppConnDesignDocument.md renamed to docs/en_US/0.2.0/architecture/StreamisAppConnDesignDocument.md

Lines changed: 14 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# Streamis access AppConn
22

33
## Overall flow chart
4-
![Streamis access DSS](../../images/zh_CN/streamis_appconn.png)
4+
![Streamis access DSS](../../../images/streamis_appconn_en.png)
55

66
## DSS project APPCONN plug-in streamis-appconn
77

88
### The configuration table
9-
Configure the following three tables:dss_appconn、dss_workspace_menu_appconn、dss_appconn_instance,appconn_name for realTimeJobCenter is appconn accessed by the graphical interface,appconn_name for streamis is appconn accessed by the API,The StreamisAppConn object is instantiated based on the configuration information in the table when DSS is started
9+
Configure the following four tables:dss_workspace_dictionarydss_appconn、dss_workspace_menu_appconn、dss_appconn_instance,appconn_name for realTimeJobCenter is appconn accessed by the graphical interface,appconn_name for streamis is appconn accessed by the API,The StreamisAppConn object is instantiated based on the configuration information in the table when DSS is started.Appconn in the following SQL_ INSTALL_ IP and appconn_ INSTALL_ When executing DSS installation script for automatic installation, port will enter through interactive commands.
1010
```roomsql
11+
delete from `dss_workspace_dictionary` WHERE `appconn_name` = 'streamis';
12+
13+
INSERT INTO `dss_workspace_dictionary` ( `workspace_id`, `parent_key`, `dic_name`, `dic_name_en`, `dic_key`, `dic_value`, `dic_value_en`, `title`, `title_en`, `url`, `url_type`,`icon`, `order_num`, `remark`, `create_user`, `create_time`, `update_user`, `update_time`, appconn_name)
14+
VALUES ('0','p_develop_process','流式生产中心','Streamis Product Center','pdp_streamis_product_center','streamis_prod',NULL,NULL,NULL,
15+
'http://APPCONN_INSTALL_IP:APPCONN_INSTALL_PORT/#/realtimeJobCenter?projectName=${projectName}&workspaceName=${workspaceName}','0','kaifa-icon','1','工程开发流程-流式生产中心','SYSTEM','2020-12-28 17:32:35',NULL,'2022-06-30 17:49:02','streamis');
16+
1117
select @old_dss_appconn_id:=id from `dss_appconn` where `appconn_name` = 'streamis';
1218
1319
delete from `dss_workspace_menu_appconn` WHERE `appconn_id` = @old_dss_appconn_id;
@@ -37,11 +43,11 @@ VALUES(@jobcenter_dss_appconn_id, 1, 'StreamSQL development', 'StreamSQL开发',
3743
3844
INSERT INTO dss_appconn_instance
3945
(appconn_id, label, url, enhance_json, homepage_uri)
40-
VALUES(@dss_appconn_id, 'DEV', 'http://Streamis_INSTALL_IP:Streamis_INSTALL_PORT/', '', 'http://Streamis_INSTALL_IP:Streamis_INSTALL_PORT/#/realTimeJobCenter');
46+
VALUES(@dss_appconn_id, 'DEV', 'http://APPCONN_INSTALL_IP:APPCONN_INSTALL_PORT/', '', 'http://APPCONN_INSTALL_IP:APPCONN_INSTALL_PORT/#/realTimeJobCenter');
4147
4248
INSERT INTO dss_appconn_instance
4349
(appconn_id, label, url, enhance_json, homepage_uri)
44-
VALUES(@jobcenter_dss_appconn_id, 'DEV', 'http://Streamis_INSTALL_IP:Streamis_INSTALL_PORT/#/realTimeJobCenter', NULL, NULL);
50+
VALUES(@jobcenter_dss_appconn_id, 'DEV', 'http://APPCONN_INSTALL_IP:APPCONN_INSTALL_PORT/#/realTimeJobCenter', NULL, NULL);
4551
```
4652

4753
### Concrete implementation description
@@ -55,7 +61,7 @@ To create a StreamisProjectService by rewriting the methods in StreamisStructure
5561

5662
## API
5763
1 API name: query project
58-
- API path:GET/streamis/project/searchProject
64+
- API path:GET /streamis/project/searchProject
5965
- Request parameters
6066

6167
|Parameter name |Whether it is necessary |Example |remarks |
@@ -73,7 +79,7 @@ To create a StreamisProjectService by rewriting the methods in StreamisStructure
7379
|- projectId |number |yes |
7480

7581
2 API name:create project
76-
- API path:GET/streamis/project/createProject
82+
- API path:POST /streamis/project/createProject
7783
- Request parameters
7884

7985
|Parameter name |Whether it is necessary |Example |remarks |
@@ -96,7 +102,7 @@ To create a StreamisProjectService by rewriting the methods in StreamisStructure
96102
|- projectName |string |no |
97103

98104
3 API name:update project
99-
- API path:GET/streamis/project/updateProject
105+
- API path:PUT /streamis/project/updateProject
100106
- Request parameters
101107

102108
|Parameter name |Whether it is necessary |Example |remarks |
@@ -118,7 +124,7 @@ To create a StreamisProjectService by rewriting the methods in StreamisStructure
118124
|data |object |no |
119125

120126
4 API name:delete project
121-
- API path:GET/streamis/project/deleteProject
127+
- API path:DELETE /streamis/project/deleteProject
122128
- Request parameters
123129

124130
|Parameter name |Whether it is necessary |Example |remarks |
@@ -170,40 +176,3 @@ ALTER TABLE `linkis_stream_project` ADD is_deleted tinyint unsigned DEFAULT 0;
170176
- The creation operation will insert the project information (projectName、workspaceId) in the request parameters into the project table linkis_stream_project and auto increment the generated ID, associate the user in the permission information data (releaseUsers、editUsers、accessUsers) in the request parameters with the generated ID of the project table, and insert the table linkis_stream_project_privilege, the status value returned from the successful creation operation is 0, and the project table generation ID will be returned as the value of projectId;
171177
- The modification operation will update the request information data to the table linkis_stream_project and linkis_stream_project_privilege, the status value returned successfully is 0;
172178
- In the delete operation, the is_deleted field of the table linkis_stream_project will be marked as 1 according to the projectId. The relevant data in the table linkis_stream_project_privilege will be deleted, the status value returned successfully is 0.
173-
174-
# Authentication
175-
176-
## Authentication flow chart
177-
![Streamis project authentication operation](../../images/zh_CN/streamis_project_privilege.png)
178-
179-
### edit privilege API:
180-
181-
|RequestMethod |API path |name |
182-
|------|----------------------------------------------------------|-----------------|
183-
|POST |/streamis/streamProjectManager/project/files/upload |Project resource file - Import |
184-
|GET |/streamis/streamProjectManager/project/files/delete |Delete all versions of the file under the project |
185-
|GET |/streamis/streamProjectManager/project/files/version/delete |Delete version file |
186-
|GET |/streamis/streamProjectManager/project/files/download |Task details - Download |
187-
|POST |/streamis/streamJobManager/job/upload |Upload file |
188-
|POST |/streamis/streamJobManager/job/execute |start-up |
189-
|GET |/streamis/streamJobManager/job/stop |stop |
190-
|PUT |/streamis/streamJobManager/job//snapshot/{jobId:\w+} |Snapshot generation |
191-
|GET |/streamis/streamJobManager/config/json/{jobId:\w+} |Configuration - save |
192-
|POST |/streamis/streamJobManager/job/bulk/execution |Batch start |
193-
|POST |/streamis/streamJobManager/job/bulk/pause |Batch stop |
194-
195-
196-
### access privilege API:
197-
198-
|RequestMethod |API path |name |
199-
|------|----------------------------------------------------------|-------------|
200-
|GET |streamis/streamJobManager/job/list |Query the jobs that the current user can view |
201-
|GET |/streamis/streamProjectManager/project/files/list |prokect resource document |
202-
|GET |/streamis/streamProjectManager/project/files/version/list |Obtain all versions of the file under the project |
203-
|GET |/streamis/streamJobManager/job/version |Query job version |
204-
|GET |/streamis/streamJobManager/job/execute/history |Job execution history |
205-
|GET |/streamis/streamJobManager/job/progress |Get the latest task status of the current version of the job |
206-
|GET |/streamis/streamJobManager/job/jobContent |Task details |
207-
|GET |/streamis/streamJobManager/job/logs |Get log |
208-
|POST |/streamis/streamJobManager/config/json/{jobId:\w+} |Get task configuration |
209-
|GET |/streamis/streamJobManager/config/view |Query the current job configuration information |
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Authentication
2+
3+
## Authentication flow chart
4+
In Streamis, the module that needs authentication does not rely on the Streamis project server module. The rest interface is called to handle authentication.
5+
6+
![Streamis project authentication operation](../../../images/streamis_project_privilege_en.png)
7+
8+
## Specific implementation instructions
9+
Get the set of all permissions according to the current user name and item id/ name. If the permission set contains RELEASE permission, you have the permission to publish / edit / view; if the permission set contains EDIT permission, you have the permission to edit / view; if the permission set contains ACCESS permission, you have the permission to view;
10+
Permission inclusion relationship: RELEASE permission includes EDIT permission and ACCESS permission; edit permission includes ACCESS permission.
11+
12+
### edit privilege API:
13+
14+
|RequestMethod |API path |name |
15+
|------|----------------------------------------------------------|-----------------|
16+
|POST |/streamis/streamProjectManager/project/files/upload |Project resource file - Import |
17+
|GET |/streamis/streamProjectManager/project/files/delete |Delete all versions of the file under the project |
18+
|GET |/streamis/streamProjectManager/project/files/version/delete |Delete version file |
19+
|GET |/streamis/streamProjectManager/project/files/download |Task details - Download |
20+
|POST |streamis/streamJobManager/job/createOrUpdate |create or Update streamis-job|
21+
|POST |/streamis/streamJobManager/job/upload |Upload file |
22+
|POST |/streamis/streamJobManager/job/execute |start-up |
23+
|GET |/streamis/streamJobManager/job/stop |stop |
24+
|PUT |/streamis/streamJobManager/job//snapshot/{jobId:\w+} |Snapshot generation |
25+
|GET |/streamis/streamJobManager/config/json/{jobId:\w+} |Configuration - save |
26+
|POST |/streamis/streamJobManager/job/bulk/execution |Batch start |
27+
|POST |/streamis/streamJobManager/job/bulk/pause |Batch stop |
28+
29+
30+
### access privilege API:
31+
32+
|RequestMethod |API path |name |
33+
|------|----------------------------------------------------------|-------------|
34+
|GET |streamis/streamJobManager/job/list |Query the jobs that the current user can view |
35+
|GET |/streamis/streamProjectManager/project/files/list |prokect resource document |
36+
|GET |/streamis/streamProjectManager/project/files/version/list |Obtain all versions of the file under the project |
37+
|GET |/streamis/streamJobManager/job/version |Query job version |
38+
|GET |/streamis/streamJobManager/job/execute/history |Job execution history |
39+
|GET |/streamis/streamJobManager/job/progress |Get the latest task status of the current version of the job |
40+
|GET |/streamis/streamJobManager/job/jobContent |Task details |
41+
|GET |/streamis/streamJobManager/job/logs |Get log |
42+
|POST |/streamis/streamJobManager/config/json/{jobId:\w+} |Get task configuration |
43+
|GET |/streamis/streamJobManager/config/view |Query the current job configuration information |
75.8 KB
Loading
106 KB
Loading

0 commit comments

Comments
 (0)