forked from apache/hertzbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] HertzBeat Official Template Marketplace [apache#1792]
- Loading branch information
1 parent
24595fb
commit 76bb28c
Showing
94 changed files
with
5,813 additions
and
708 deletions.
There are no files selected for viewing
37 changes: 27 additions & 10 deletions
37
template-marketplace/hertzbeat-template-hub/apiTest/category.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,38 @@ | ||
### add category | ||
POST http://localhost:8080/api/category/upload/test | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
### add categoryDO | ||
POST http://localhost:8080/api/categoryDO/upload/test | ||
Content-Type: application/x-www-form-urlencoded | ||
|
||
description=test | ||
|
||
### modify category | ||
POST http://localhost:8080/api/category/modify/1 | ||
### modify categoryDO | ||
POST http://localhost:8080/api/categoryDO/modify/1 | ||
Content-Type: application/x-www-form-urlencoded | ||
|
||
name=Database monitoring& | ||
description=数据库监控模版 | ||
|
||
### delete category | ||
DELETE http://localhost:8080/api/category/delete/1 | ||
### delete categoryDO | ||
DELETE http://localhost:8080/api/categoryDO/delete/1 | ||
|
||
### get category by isDel | ||
GET http://localhost:8080/api/category/all/0 | ||
### get categoryDO by isDel | ||
GET http://localhost:8080/api/categoryDO/all/0 | ||
|
||
### get category page by isDel | ||
GET http://localhost:8080/api/category/page/isDel/0?page=0&size=2 | ||
### get categoryDO page by isDel | ||
GET http://localhost:8080/api/categoryDO/page/isDel/0?page=0&size=2 |
21 changes: 19 additions & 2 deletions
21
template-marketplace/hertzbeat-template-hub/apiTest/share.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
### share | ||
GET http://localhost:8080/api/share/getShareURL/100 | ||
GET http://localhost:8080/api/share/getShareURL/1 | ||
|
||
### downloadShare | ||
GET http://localhost:8080/api/share/share/6laZF | ||
GET http://localhost:8080/api/share/download/6laZF |
43 changes: 31 additions & 12 deletions
43
template-marketplace/hertzbeat-template-hub/apiTest/star.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,39 @@ | ||
### star version | ||
POST http://localhost:8080/api/version/star | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
### get starDO templateDO id by user | ||
GET http://localhost:8080/api/starDO/1 | ||
|
||
### assert templateDO is starDO by user | ||
GET http://localhost:8080/api/starDO/isStar/1/1 | ||
|
||
### starDO versionDO | ||
POST http://localhost:8080/api/templateDO/starDO | ||
Content-Type: application/x-www-form-urlencoded | ||
|
||
user=1& | ||
template=1& | ||
version=1 | ||
|
||
### get star version by user | ||
GET http://localhost:8080/api/star/1 | ||
templateDO=3 | ||
|
||
### get star version page by user | ||
GET http://localhost:8080/api/star/page/user/1?page=0&size=2 | ||
### get starDO templateDO page by user | ||
GET http://localhost:8080/api/starDO/page/user/1?page=0&size=10 | ||
|
||
### cancel star | ||
POST http://localhost:8080/api/star/cancel/1 | ||
### cancel starDO | ||
POST http://localhost:8080/api/starDO/cancel/1 | ||
Content-Type: application/x-www-form-urlencoded | ||
|
||
versionId = 1 | ||
templateId = 1 | ||
|
41 changes: 27 additions & 14 deletions
41
template-marketplace/hertzbeat-template-hub/apiTest/template.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 46 additions & 1 deletion
47
template-marketplace/hertzbeat-template-hub/apiTest/user.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,46 @@ | ||
### | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
### Registy | ||
POST http://localhost:8080/api/auth/register | ||
Content-Type: application/json | ||
|
||
{ | ||
"type": 1, | ||
"identifier": "[email protected]", | ||
"credential": "123456" | ||
} | ||
|
||
### Login | ||
POST http://localhost:8080/api/auth/token | ||
Content-Type: application/json | ||
|
||
{ | ||
"type": 1, | ||
"identifier": "[email protected]", | ||
"credential": "123456" | ||
} | ||
|
||
### custom token | ||
POST http://localhost:8080/api/auth/custom/token | ||
Content-Type: application/json | ||
|
||
{ | ||
"type": 1, | ||
"identifier": "[email protected]", | ||
"credential": "123456" | ||
} |
29 changes: 23 additions & 6 deletions
29
template-marketplace/hertzbeat-template-hub/apiTest/version.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
### Get all version information of a template | ||
GET http://localhost:8080/api/version/version/1 | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
### Get all version page of a template | ||
GET http://localhost:8080/api/version/page/1/0?page=0&size=2 | ||
### Get all versionDO information of a templateDO | ||
GET http://localhost:8080/api/versionDO/versionDO/1 | ||
|
||
### Get version information By ID | ||
GET http://localhost:8080/api/version/get/1 | ||
### Get all versionDO page of a templateDO | ||
GET http://localhost:8080/api/versionDO/page/1/0?page=0&size=2 | ||
|
||
### Get versionDO information By ID | ||
GET http://localhost:8080/api/versionDO/get/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.