Skip to content

reddytocode/Web-Bookmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages