JetLink is a lightweight, high-performance RESTful API designed to shorten long URLs, retrieve original destinations, and manage link lifecycles efficiently.
The API is deployed and accessible at:
https://jettlink-jetlink.hf.space
- Endpoint:
POST /api/v1/urls - Description: Generates a shortened URL wrapper for a given target destination.
- Status Code on success:
201 Created
{
"originalUrl": "https://example.com"
}jettlink-jetlink.hf.space/1
- Endpoint:
GET /<shortCode> - Description: Resolves the unique short code and returns the original long URL destination.
- Status Code:
200 OK/302 Found - When someone tries to go to the short link, the api redirects the request to the original destination.
Request URL Example
GET https://jettlink-jetlink.hf.space/1
- Endpoint:
DELETE /api/v1/urls/<shortCode> - Description: Removes a shortened link from the database entirely, making the short code inactive.
- Status Code:
204 No Content
Request URL Example
DELETE https://jettlink-jetlink.hf.space/api/v1/urls/1
- Backend: Spring Boot / JDK 25
- Database: PostgreSQL (Supabase)
- Cache: Redis (Upstash)
- Hosting/Deployment: Hugging Face Spaces (
hf.space)