golang-basic-url-shortener

command module
v0.0.0-...-d98eec0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 6 Imported by: 0

README

Go Report Card

Basic URL Shortener

Welcome to the Basic URL Shortener project! This Golang-based application provides a straightforward URL shortening service with a redirection page.

Usage

Shorten URL

Endpoint: POST /shorten-url

Request Body:

{
    "long_url": "https://www.umitanilkilic.com"
}

Response Body:

{
    "message": "URL created successfully",
    "short_url": "http://localhost:9808/s/1786799982"
}
Redirect Shortened URL

Endpoint: GET /s/:shortUrl

Run

To run the application, use the following command:

go run main.go

Enjoy using the Basic URL Shortener! If you encounter any issues or have suggestions, feel free to contribute or reach out.

License

This repository is licensed under the MIT License. Feel free to explore, use, and modify it as per the license terms.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL