Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 713 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 713 Bytes

✂️ lnk

Small API to cut links. Runs over app memory or Redis (for persistant links).

Example

  1. Pass your URL to API
curl \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --header "X-Lnk-Token: your-token" \
  --request POST \
  --data 'url=https://my-test-url.com&uid=your-uid&ttl=10m' \
  http://localhost:8010/

You'll get response with a cutted link.

  1. Use a cutted link

Build run application in dev mode

docker-compose -f docker-compose.dev.yml up

Run tests

docker-compose -f docker-compose.dev.yml run lnk /usr/share/python3/app/bin/pytest

Run linter

docker-compose -f docker-compose.dev.yml run lnk /usr/share/python3/app/bin/flake8