GithubHelp home page GithubHelp logo

bloggo's Introduction

Spring Boot Blog-Rest-API Application

This is a Spring Boot application that provides REST API endpoints for managing blog posts.

Requirements

To run this application, you will need the following:

  • Java 8 or higher
  • Maven 3.6 or higher

Installation

  1. Clone the repository to your local machine:
+git clone https://github.com/<username>/spring-boot-blog-rest-api.git 
  1. Navigate to the project directory:
+cd spring-boot-blog-rest-api
  1. Build the project using Maven:
+mvn clean install
  1. Run the application:
+mvn spring-boot:run
  1. The application will start running on http://localhost:8080.

API Endpoints

The following endpoints are available:

  • GET /posts: Get a list of all blog posts.
  • POST /posts: Create a new blog post.
  • GET /posts/{id}: Get a specific blog post by ID.
  • PUT /posts/{id}: Update a specific blog post by ID.
  • DELETE /posts/{id}: Delete a specific blog post by ID.

Request and Response Formats

GET /posts

Response Body:

[
  {
    "id": 1,
    "title": "My First Blog Post",
    "content": "This is the content of my first blog post.",
    "createdAt": "2023-05-10T10:05:23.000Z",
    "updatedAt": "2023-05-10T10:05:23.000Z"
  },
  {
    "id": 2,
    "title": "My Second Blog Post",
    "content": "This is the content of my second blog post.",
    "createdAt": "2023-05-11T08:20:15.000Z",
    "updatedAt": "2023-05-11T08:20:15.000Z"
  }
]

Pull requests are welcome, Here's a quick checklist for a good PR, more details below:

  1. A discussion around the change.
  2. A GitHub Issue with a good description associated with the PR
  3. One feature/change per PR
  4. One commit per PR
  5. PR rebased on main (git pull)
  6. Good descriptive commit message, with link to issue
  7. No changes to code not directly related to your PR
  8. Includes functional/integration test
  9. Includes documentation

Author

This repository was created by @tsaransh. If you have any questions or feedback, feel free to reach out to me.

bloggo's People

Contributors

tsaransh avatar sameerkali avatar

Stargazers

Anmol kumar avatar Deepanshu Kumar avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.