Skip to content

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

ParameterTypeRequiredDescription
namestringYesSkill name
categorystringYesSkill category: frontend/backend/tool/other
levelnumberYesSkill level (1-100)
descriptionstringNoSkill description
iconstringNoIcon URL
ordernumberNoSort 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 CodeDescription
401Not logged in or token invalid
403Insufficient permission (non-admin)
404Skill does not exist
400Parameter error
500Server error