url_shortener
url_shortener
It's...erm... an url shortener! A simple and modest one.
Installation
TODO: Write installation instructions here
Usage
Request
PUT api/v1/shorten/
- Create a shorten url for a given long url, with following parameters:
{
"long_url": "https://www.mybigurlexample.com/abigurlpath",
"metadata": {
"expires_at": "2024-04-28",
"tags": ["environment", "health"],
}
}
- Example:
curl -X PUT 0.0.0.0:3000/ \
-H "Content-Type: application/json" \
-d '{"long_url": "https://www.mybigurlexample.com/abigurlpath", "metadata": {"expires_at": "2024-04-28", "tags": ["environment", "health"]}}'
Response
{
"long_url": "https://www.mybigurlexample.com",
"short_url": "http://localhost/d097b",
"key": "d097b",
"created_at": "2024-04-27",
"active": true
}
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/your-github-user/url_shortener/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Guilherme Silva - creator and maintainer
Repository
url_shortener
Owner
Statistic
- 0
- 0
- 0
- 0
- 2
- over 1 year ago
- March 3, 2024
License
MIT License
Links
Synced at
Tue, 02 Sep 2025 21:57:23 GMT