Skip to content

Welcome to the Blog Post API! This API allows you to easily manage blog posts, whether you're retrieving existing posts, creating new ones, updating content, or deleting posts. Whether you're building a simple blog platform or integrating a blog feature into your existing application, this API provides the necessary endpoints to get started quickly

Notifications You must be signed in to change notification settings

Avinash7770/Api-based-blog-post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Post API

This is a simple blog post API built using Node.js and Express.js, with data stored in-memory. The API provides basic CRUD (Create, Read, Update, Delete) operations for managing blog posts.

Features

  • Get All Posts: Retrieve a list of all blog posts.
  • Get Specific Post by ID: Retrieve a specific blog post by its ID.
  • Create New Post: Add a new blog post.
  • Update Post: Update an existing blog post.
  • Delete Post: Delete a blog post.

How to Use

  1. Clone the repository:

  2. Navigate to the project directory:

  3. Install dependencies:

  4. Start the server:

  5. The server will start running at http://localhost:3000.

Endpoints

1. Get All Posts

  • URL: /posts
  • Method: GET
  • Description: Retrieve a list of all blog posts.

2. Get Specific Post by ID

  • URL: /posts/:id
  • Method: GET
  • Description: Retrieve a specific blog post by its ID.

3. Create New Post

  • URL: /posts
  • Method: POST
  • Description: Add a new blog post.

4. Update Post

  • URL: /posts/:id
  • Method: PATCH
  • Description: Update an existing blog post.

5. Delete Post

  • URL: /posts/:id
  • Method: DELETE
  • Description: Delete a blog post.

Frontend Integration

This API can be integrated with a frontend to create a complete blogging platform. The frontend can utilize the provided endpoints to perform CRUD operations on blog posts.

Technologies Used

  • Node.js
  • Express.js
  • Axios (for making HTTP requests)

License

This project is licensed under the MIT License - see the LICENSE file for details.


Feel free to customize and extend this API according to your requirements! If you have any questions or suggestions, please feel free to reach out.

About

Welcome to the Blog Post API! This API allows you to easily manage blog posts, whether you're retrieving existing posts, creating new ones, updating content, or deleting posts. Whether you're building a simple blog platform or integrating a blog feature into your existing application, this API provides the necessary endpoints to get started quickly

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published