Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: 请求新增Sink短链功能 #254

Closed
3 tasks done
onlyistranger opened this issue Oct 18, 2024 · 3 comments
Closed
3 tasks done

[Feature]: 请求新增Sink短链功能 #254

onlyistranger opened this issue Oct 18, 2024 · 3 comments
Assignees

Comments

@onlyistranger
Copy link

前置阅读 | Pre-reading

PicList的版本 | PicList Version

2.9.3

系统信息 | System Information

Windows

功能请求 | Feature request

希望添加Sink短链功能,和yourls类似。
API文档连接:https://github.com/ccbikai/Sink/blob/master/docs/api.md
请求

  POST {domain}/api/link/create
  HEADER authorization: Bearer {TOKEN}
  HEADER content-type: application/json
  BODY  {
          "url": "https://github.com/Kuingsmile/PicList"
        }

返回

  RESPONSE 201
  BODY  {
          "link": {
            "id": "xpqhaurv5q",
            "url": "https://github.com/Kuingsmile/PicList",
            "slug": "issue14",
            "createdAt": 1718119809,
            "updatedAt": 1718119809
          }
        }

短连接为{domain}/{res.data.link.slug}

@Kuingsmile
Copy link
Owner

可以

@onlyistranger
Copy link
Author

多谢👍👍👍

@Kuingsmile
Copy link
Owner

added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants