Socket
Socket
Sign inDemoInstall

github.com/blazee5/url-shortener-rest-api

Package Overview
Dependencies
57
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/blazee5/url-shortener-rest-api


Version published

Readme

Source

url-shortener-rest-api

REST API client written in golang for url shortener app

How to use

git clone https://github.com/blazee5/url-shortener-rest-api
go mod tidy
go run cmd/url-shortener/main.go

Routes

r.Post("/url", save.New(log, dao)) // Create URL
r.Get("/{alias}", redirect.New(log, dao)) // Get redirect to URL
r.Delete("/{alias}", delete.Delete(log, dao)) // Delete URL

Technologies

Project is created with:

  • Go (Golang)
  • MongoDB

Features

What is realised in this project:

  • REST API client
  • Functional and unit tests
  • Logger (Slog)
  • Graceful shutdown

FAQs

Last updated on 30 Jul 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc