Skip to content

Latest commit

 

History

History
45 lines (39 loc) · 849 Bytes

README.md

File metadata and controls

45 lines (39 loc) · 849 Bytes

blog-api

a blog API , can create create, delete and put blog with authentication

Installation

To install the project and its dependencies using pipenv, follow these steps:

  1. Clone the repository:
    git clone https://github.com/your-username/your-repo.git
    cd your-repo
  2. Install dependencies with pipenv:
    pipenv install
  3. Activate the virtual environment:
    pipenv shell
  4. Apply database migrations:
    python manage.py migrate

Usage

  1. create superuser:
    python manage.py createsuperuser
  2. Run the development server:
    python manage.py runserver

endpoint

  1. admin/
  2. blog/
  3. blog/str:pk/
  4. addBlog/
  5. users/
  6. users/int:pk/
  7. api-auth/ login/ [name='login']
  8. api-auth/ logout/ [name='logout']