byandrev / url-shortener-api

API in django

Home Page:https://urlshortenerapi.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortener API

Installation

Install dependencies

pip install -r requirements.txt

Run

  1. Create and config env file
  2. Run make migrate and make run

Paths

  • /shortener/api/v1/shortener/: Get all the URLs. response = List[(id: string, url: string)]
  • /shortener/api/v1/shortener/: Create URL. body = (url: string)
  • /shortener/api/v1/shortener/${id}: Get URL by id. response = (id: string, url: string)
  • /shortener/docs: Documentation

About

API in django

https://urlshortenerapi.vercel.app/


Languages

Language:Python 95.1%Language:Makefile 4.9%