It's...erm... an url shortener! A simple and modest one.
TODO: Write installation instructions here
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"]}}'
{
"long_url": "https://www.mybigurlexample.com",
"short_url": "http://localhost/d097b",
"key": "d097b",
"created_at": "2024-04-27",
"active": true
}
TODO: Write development instructions here
- 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
- Guilherme Silva - creator and maintainer