Skip to content

nasttolm/api_final_yatube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The "API for Yatube" project

Yandex educational project. Python Developer course (backend).

Description

Yatube is a social network for publishing diaries. It allows you to publish posts, to comment on the posts and to follow different authors. Django REST framework is used for API development. ViewSets with restricted access for different users were used. JWT token authentication is implemented.

Running a project

  • Clone the repository and go to it on the command line:
git clone git@github.com:nasttolm/api_final_yatube.git

cd kittygram

  • Install and activate the virtual environment
python3 -m venv env

source env/bin/activate

- Install dependencies from requirements.txt file

python3 -m pip install --upgrade pip

pip install -r requirements.txt
  • Run migrations:
python3 manage.py migrate
  • In the folder with the manage.py file, run the command:
python3 manage.py runserver

Examples

Some examples of API requests

GET/api/v1/posts/

POST/api/v1/posts/{post_id}/comments/

Technologies

Python 3.9.10

Django 3.2.16

djangorestframework 3.12.4

djangorestframework-simplejwt 4.7.2

Documentation for the Yatube project API (v1):

http://127.0.0.1:8000/redoc/

About

api final yatube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published