Just-Moh-it / Pckd

The ⚡️ analytics-intensive, self-hostable link-shortener with a beautiful UI | AKA free bit.ly alternative 🚀
https://docs.pckd.me/
MIT License
784 stars 95 forks source link

Add API Support #11

Open CDN18 opened 2 years ago

CDN18 commented 2 years ago

Thanks for making pckd! Do you have any plan to add API support for it?

Just-Moh-it commented 2 years ago

Actually, it was created be keeping an API-first approach. You could go to this url: https://studio.apollographql.com/sandbox/explorer, put in the backend URL there, and view the self-documented API. As for the Authorization, add the token received from the login mutation as a header in subsequent queries/mutations. Also, the server/src/api folder is pretty self-explanatory as well.

I'll add this to the docs in a few days... For now, if you have any queries, I'm there to help. Hearty thanks for choosing Pckd!

(PS: I would love your feedback as well, maybe join discord through the link in the readme)