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

API #14

Open
dcdebug opened this issue Jun 9, 2024 · 2 comments
Open

API #14

dcdebug opened this issue Jun 9, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@dcdebug
Copy link

dcdebug commented Jun 9, 2024

not support the api ?
example :
a url request the api then return a shorturl .

@ccbikai
Copy link
Owner

ccbikai commented Jun 10, 2024

It's already supported, but not yet stable written, you can refer to this command line first

curl 'https://sink.cool/api/link/create' \
  -H 'authorization: Bearer SinkCool' \
  -H 'content-type: application/json' \
  --data-raw '{"url":"https://github.com/ccbikai/Sink/issues/14"}'

@ccbikai ccbikai added the documentation Improvements or additions to documentation label Jun 10, 2024
@tomcollis
Copy link
Contributor

@ccbikai Thank you, can you specify the slug in the json?

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

No branches or pull requests

3 participants