/api_yamdb

API version of YaMDB - social network where users can publish their diaries and notes, subscribe to other users, and comment on their articles.

Primary LanguagePython

API YaMDB

Post, read, comment. Or all at once

This is the API version of YaMDB - social network where users can publish their diaries and notes, subscribe to other users, and comment on their articles. If you need version based on Django templates please check this link.

Powered by
N|Python N|DjangoREST N|SQLite

Installing

For linux system or WSL

Get source

git clone git@github.com:ImreTot/api_final_yatube.git

In this project we use python3.9. Make virtual environment

python3 -m venv venv
source venv/bin/activate

Install pip and dependencies

python -m pip install --upgrade pip
pip install -r requirements.txt

Migrations

python manage.py makemigrations
python manage.py migrate

Postman collection for API

The Ymdb-collection.postman_collection.json file in root directory contains the postman collection - a set of pre-prepared API queries.

Loading a collection in Postman:

  • Launch Postman;
  • In the upper left corner, click File -> Import;
  • A pop-up window will ask you to drag a file with a collection into it or select a file through the file manager window. Load the Ymdb-collection.postman_collection.json file into Postman.

About us

Roman Kiiashko wrote a registration and authentication system, access rights, working with a token, and a confirmation system via e-mail.
Valiria Kolesnikova prepared models, views and endpoints for works, categories, genres. Implemented data import from csv files.
destiny986 worked on reviews, comments, and ratings of works.

License

MIT
Free Software, Hell Yeah!