Skip to content

This project is a Blog API built using Django, designed to allow users to create, read, update, and delete blog posts with authentication. The API supports essential CRUD operations and ensures that only authenticated users can manage their own blog posts.

Notifications You must be signed in to change notification settings

dahhou-ilyas/blog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']

About

This project is a Blog API built using Django, designed to allow users to create, read, update, and delete blog posts with authentication. The API supports essential CRUD operations and ensures that only authenticated users can manage their own blog posts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages