Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
github.com/nurmuh-alhakim18/url-shortener-api
This is a simple REST API for shortening URL. It allows client to shorten the given URL.
Method | Endpoint | Description |
---|---|---|
GET | /api/health | Check readiness of API |
POST | /api/shorten | Shorten the long URL provided by user |
GET | /{alias} | Redirect the shortened URL to the long URL |
Method: GET
URL: /api/health
On Success Status Code: 200
Response:
200 OK
Method: POST
URL: /api/shorten
Headers:
Content-Type
: application/json
Request Body:
string
unique
: Alias which will be used for redirection.string
: URL shortening target.On Success Status Code: 201
Request Example:
{
"custom_alias": "lol",
"original_url": "https://leagueoflegends.com"
}
Response Example:
{
"generated_link": "https://url-shortener-836536565354.asia-southeast2.run.app/lol"
}
Method: GET
URL: /{alias}
On Success Status Code: 200
Response:
200 OK
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.