Skip to content

Python Django CRUD API with MySQL and Django Rest Framework, Access the Resource from server through endpoints with it's respective HTTP Methods (GET, PUT, POST, DELETE)

Notifications You must be signed in to change notification settings

pranav-on-github/BlogAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlogAPI

Python Django CRUD API with MySQL and Django Rest Framework

Features

  • Create, retrieve, update, and delete blog posts.

  • Add comments to blog posts and retrieve comments for a specific blog post.

  • Like and dislike functionality for blog posts.

  • User authentication to protect sensitive operations.

  • API Endpoints

  • GET /api/blog/: Get all blog posts.

  • POST /api/addblog/: Create a new blog post.

  • GET /api/blog/<slug:slug>/: Get details of a specific blog post.

  • PUT /api/blog/<slug:slug>/: Update a specific blog post.

  • DELETE /api/blog/<slug:slug>/: Delete a specific blog post.

  • POST /api/blog/<int:id>/like/: Like or dislike a blog post.

  • POST /api/blogs/<slug:slug>/comments/: Add a comment to a blog post.

  • GET /api/blogs/<slug:slug>/comment/: Get comments for a specific blog post.

  • POST /api/savefile/: Upload a file (image) for a blog post.

  • GET /api/getuser/: Get details of the authenticated user.

About

Python Django CRUD API with MySQL and Django Rest Framework, Access the Resource from server through endpoints with it's respective HTTP Methods (GET, PUT, POST, DELETE)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages