Tech Stack
- Mysql PlanetScale
- Svelte
- Prisma
- Vanilla JS
- Uno Css
- Astro JS
Untuk Lebih lanjutnya bisa dibaca di artikel berikut Dokumentasi Karya Pemendek URL
All API Served on https://www.sarbeh.com/, if you interisting to use this API, for free to add this endpoindPOST api/Post
Create a new data entry
Request
Content Type: application/json
Body:
"uniqcode": "Unique alphanumeric code", "link": "The link to be stored"
Responses
200: Link created successfully
400: Bad request, possibly due to invalid input or the unique code is already in use
500: Server error
POST /api/U2zg
Fetches a link from the API based on a unique code
Request
Content Type: application/json
Body:
"uniqcode": "Unique alphanumeric code"
Responses
200: Returns the fetched link
404: Link not found
400: No unique code provided or invalid Content-Type