RuoYi-Vue-Plus/ruoyi-site/ruoyi-h5/doc/http/component-category.http
2026-03-10 23:12:20 +08:00

78 lines
2.0 KiB
HTTP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 1.
GET http://localhost:19200/h5/h5/category/page?pageNum=1&pageSize=10&parentId=1
Content-Type: application/json
### 2.
GET {{baseUrl}}/h5/category/page?pageNum=1&pageSize=10&parentId=1
Content-Type: application/json
### 3.
GET {{baseUrl}}/h5/category/page?pageNum=1&pageSize=10&type=text
Content-Type: application/json
### 4.
GET {{baseUrl}}/h5/category/page?pageNum=1&pageSize=10&keyword=
Content-Type: application/json
### 5.
GET {{baseUrl}}/h5/category/by-type?type=text
Content-Type: application/json
### 6.
GET {{baseUrl}}/h5/category/tree
Content-Type: application/json
### 7.
POST {{baseUrl}}/h5/category
Content-Type: application/json
{
"parentId": 0,
"name": "",
"type": "text",
"sort": 100,
"icon": "https://example.com/icon.png",
"description": "",
"isSystem": 0
}
### 8.
POST {{baseUrl}}/h5/category
Content-Type: application/json
{
"parentId": 1,
"name": "",
"type": "text",
"sort": 1,
"description": "",
"isSystem": 0
}
### 9.
POST {{baseUrl}}/h5/category/update/1
Content-Type: application/json
{
"id": 1,
"parentId": 0,
"name": "",
"type": "text",
"sort": 100,
"icon": "https://example.com/new-icon.png",
"description": "",
"isSystem": 0
}
### 10.
POST {{baseUrl}}/h5/category/delete/1
Content-Type: application/json
### 11.
GET {{baseUrl}}/h5/category/top-level
Content-Type: application/json
### 12. ID
GET {{baseUrl}}/h5/category/children?parentId=1
Content-Type: application/json