https://github.com/simplify9/surl
https://github.com/simplify9/surl
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simplify9/surl
- Owner: simplify9
- Created: 2020-11-26T15:20:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-13T11:29:11.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T01:41:27.552Z (about 1 year ago)
- Language: C#
- Size: 65.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
| **Package** |**Version** |**Downloads** |
| ------- | ----- | ----- |
| `SimplyWorks.Surl.Sdk` | [](https://nuget.org/packages/SimplyWorks.Surl.Sdk) | [](https://nuget.org/packages/SimplyWorks.Surl.Sdk)
# Surl
Surl is a simple library that handles Short URL handling, utilizing a simple API to create and get
the short URLs, with a middleware to handle redirection.
## Middleware
The middleware calls the GET API that retrieves a URL based on a key, and redirects the user.
## API
* GET ShortUrls/key: Retrieves a URL entry.
* POST ShortUrls: Creates a URL entry.
Model:
```
{
fullUrl: string
}
```