Skill Management
Interfaces for managing skill display.
Get Skill List
Get all skills.
Interface Information
- Endpoint:
GET /api/admin/skills - Authentication: Required (admin permission)
Create Skill
Create new skill.
Interface Information
- Endpoint:
POST /api/admin/skills - Authentication: Required (admin permission)
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Skill name |
| category | string | Yes | Skill category: frontend/backend/tool/other |
| level | number | Yes | Skill level (1-100) |
| description | string | No | Skill description |
| icon | string | No | Icon URL |
| order | number | No | Sort order, default 0 |
Request Example
bash
curl -X POST http://localhost:3000/api/admin/skills \
-H "Authorization: Bearer your-jwt-token" \
-H "Content-Type: application/json" \
-d '{
"name": "Vue.js",
"category": "frontend",
"level": 90,
"description": "Proficient in Vue.js development"
}'Update Skill
Update existing skill.
Interface Information
- Endpoint:
PUT /api/admin/skills/:id - Authentication: Required (admin permission)
Delete Skill
Delete specified skill.
Interface Information
- Endpoint:
DELETE /api/admin/skills/:id - Authentication: Required (admin permission)
Error Responses
| HTTP Status Code | Description |
|---|---|
| 401 | Not logged in or token invalid |
| 403 | Insufficient permission (non-admin) |
| 404 | Skill does not exist |
| 400 | Parameter error |
| 500 | Server error |