Skip to content

An API where user can register/login and get a Token that allow them to make CRUD operations with blogs and comments, without token users have permissions ReadOnly.

License

Notifications You must be signed in to change notification settings

javitocor/API-Blog-DRF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Contributors Forks Stargazers Issues Hireable

Blog Django Rest Framework with Auth Token

An API where user can register/login and get a Token that allow them to make CRUD operations with blogs and comments, without token users have permissions ReadOnly.

Additional description about the project and its features.

Built With

  • DJANGO
  • DJANGO REST FRAMEWORK
  • DJANGO REST AUTH
  • GITHUB ACTIONS
  • VSCODE

Getting Started

Usage

To have this app on your pc, you need to:

  • download or clone this repo:

    • Clone with SSH:
      git@github.com:javitocor/API-Blog-DRF.git
    
    • Clone with HTTPS
      https://github.com/javitocor/API-Blog-DRF.git
    
  • In the project directory, you can run:

Create virtual enviroment with:

   py -m venv project-name
   project-name\Scripts\activate.bat

Run migrations:

   py manage.py migrate

Run server:

   py manage.py runserver

Endpoints (visitors without Token Key have ReadOnly permissions):

  http://127.0.0.1:8000/rest-auth/registration/
  http://127.0.0.1:8000/rest-auth/login/
  http://127.0.0.1:8000/posts/ (POST,GET)
  http://127.0.0.1:8000/posts/:pk (GET, PUT, DELETE)
  http://127.0.0.1:8000/posts/:pk/comments (GET,POST)
  http://127.0.0.1:8000/posts/:pk/comments/:comment_id (DELETE)
  http://127.0.0.1:8000/users/ (POST,GET)
  http://127.0.0.1:8000/users/:pk (GET, PUT, DELETE)

Author

👤 Javier Oriol Correas Sanchez Cuesta

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments 🚀

📝 License

This project is MIT licensed.

About

An API where user can register/login and get a Token that allow them to make CRUD operations with blogs and comments, without token users have permissions ReadOnly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages