Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

Web Bookmarks

Setup

pip install -r requirements.txt

./manage.py migrate

Run Server: ./manage.py runserver

Tests

pytest

CURL commands

Get List endpoint (Anonymous)

curl localhost:8000/v1/bookmarks/

Get List endpoint (Authenticated user) (./manage createsuperuser)

curl localhost:8000/v1/bookmarks/ --user "name:password"

Create needs authentication

curl --user "name:password" --header "Content-Type: application/json" --request POST --data '{"is_private": "false", "title": "fake-bookmark", "url": "fake-url"}' localhost:8000/v1/bookmarks/

Update

curl --user "name:password" --header "Content-Type: application/json" --request PATCH --data '{"is_private": "false", "title": "fake-bookmark", "url": "fake-url"}' localhost:8000/v1/bookmarks/1

Update

curl --user "name:password" --request DELETE  localhost:8000/v1/bookmarks/1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages