Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lillyschramm/url-shortener
A simple URL shorener using MongoDB
https://github.com/lillyschramm/url-shortener
api nodejs url-shortener
Last synced: 16 days ago
JSON representation
A simple URL shorener using MongoDB
- Host: GitHub
- URL: https://github.com/lillyschramm/url-shortener
- Owner: LillySchramm
- License: mit
- Created: 2022-03-25T19:57:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-15T14:45:12.000Z (over 1 year ago)
- Last Synced: 2024-11-08T18:53:32.591Z (2 months ago)
- Topics: api, nodejs, url-shortener
- Language: JavaScript
- Homepage:
- Size: 351 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
- [URL-Shortener](#url-shortener)
- [API](#api)# URL-Shortener
A simple URL-Shortener using Typescript and [MongoDB](https://eps-dev.net/JxyzzT).
## API| Method | Endpoint | Description | Example Request |
| ------ | ------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `GET` | `eps-dev.net/` | Redirects to an set frontend URL | `curl --request GET --url https://eps-dev.net/` |
| `GET` | `eps-dev.net/stats` | Shows a small information about the backend | `curl --request GET --url https://eps-dev.net/stats` |
| `GET` | `eps-dev.net/:id` | Redirects to the URL behind the id | `curl --request GET --url https://eps-dev.net/xZjUiW` |
| `POST` | `eps-dev.net/add` | Generates an shortened URL | `curl --request POST --url https://eps-dev.net/add --header 'Content-Type: application/json' --data '{"url": "https://gitlab.eps-dev.de/Elias/url-shortener"}'` |