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.
- DJANGO
- DJANGO REST FRAMEWORK
- DJANGO REST AUTH
- GITHUB ACTIONS
- VSCODE
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)
👤 Javier Oriol Correas Sanchez Cuesta
- Github: @javitocor
- Twitter: @JavierCorreas4
- Linkedin: Javier Oriol Correas Sanchez Cuesta
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.