Skip to content

wojtek9502/pastebin-drf

Repository files navigation

Pastebin DRF

Pastebin clone with Django Rest Framework. An API for sharing your notes, you can add expiration time, password, syntax, categories or tags. Your note can be private or public
Celery-beat is used to delete expired notes in scheduled task

Screenshots

Click to see

All endpoints img.png

Create note img.png

See note img.png

See all notes with pagination img.png

TODO

  • more tests
  • show parameters possible values in swagger-ui (f.e. possible note categories)
  • API token authentication

Requirements

  • Python >= 3.12
  • Docker >= 24.0.5

First start

Run commands

make up
make db-migrate

Run

  1. Run containers

    make up
  2. In new terminal, run http-server

    make run-http-server
  3. Go to http://127.0.0.1:8000/api/swagger-ui

About

Pastebin clone with Django Rest Framework. An API for sharing your notes, you can add expiration time, password, syntax, categories or tags. Your note can be private or public

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors