跳转到内容
开发者文档 / 资源接口

按标识获取资源

根据资源的稳定标识 identify 获取详情,适合使用可读标识而不是数字 ID 的场景。

GET/api/resources/identify/{resourceIdentify}

鉴权方式 请求头 Api-Key、Api-Secret

路径参数

参数类型必填说明
resourceIdentifystring是创建资源时设置的唯一资源标识
bash
curl 'https://resource-api.xyeidc.com/api/resources/identify/example-mod' \
  -H 'Api-Key: YOUR_API_KEY' \
  -H 'Api-Secret: YOUR_API_SECRET'

响应示例

json
{
  "code": 200,
  "msg": "Success!",
  "data": {
    "id": 42,
    "resourceTypeId": 4,
    "name": "Example Mod",
    "identify": "example-mod",
    "description": "示例资源",
    "verified": true,
    "archived": false
  }
}