Skip to content

A Blog API project that users can add posts, comment on these posts and search them by their category. The technologies used in this project are: Java 19, Spring 6, Spring Boot 3, Spring Security JWT, Spring JPA, Lombok, Spring DevTools, Microsoft SQL Server, Swagger, Docker and AWS.

Notifications You must be signed in to change notification settings

AthirsonSilva/javaguides-blog-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog API Project

This is a Blog API project that allows users to add posts, comment on these posts, and search them by category. The technologies used in this project are Java 19, Spring 6, Spring Boot 3, Spring Security JWT, Spring JPA, Lombok, Spring DevTools, Microsoft SQL Server, Swagger, Docker, and AWS.

Technologies

  • Java 19
  • Spring 6
  • Spring Boot 3
  • Spring Security JWT
  • Spring JPA
  • Lombok
  • Spring DevTools
  • Microsoft SQL Server
  • Swagger
  • Docker
  • AWS

Installation

To run this project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/username/Blog-API-Project.git
  1. Navigate to the project directory:
cd Blog-API-Project
  1. Build the project:
./mvnw clean package
  1. Start the Docker container:
docker-compose up
  1. Access the API documentation in your web browser:
http://localhost:8080/swagger-ui.html

Usage

Once the Docker container is up and running, you can use the API to add posts, comment on posts, and search for posts by category. You can also view the API documentation in your web browser by visiting http://localhost:8080/swagger-ui.html.

Endpoints

HTTP Method Endpoint Description
POST /api/auth/signup Register a new user
POST /api/auth/signin Authenticate user and receive JWT token
GET /api/posts Get all posts
GET /api/posts/{id} Get post by ID
POST /api/posts Create new post
PUT /api/posts/{id} Update post by ID
DELETE /api/posts/{id} Delete post by ID
GET /api/posts/search?category={category} Search posts by category
GET /api/posts/{postId}/comments Get comments for a post
POST /api/posts/{postId}/comments Create a new comment for a post
PUT /api/posts/{postId}/comments/{commentId} Update a comment for a post
DELETE /api/posts/{postId}/comments/{commentId} Delete a comment for a post

Contributing

Contributions to this project are welcome. If you would like to contribute, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

A Blog API project that users can add posts, comment on these posts and search them by their category. The technologies used in this project are: Java 19, Spring 6, Spring Boot 3, Spring Security JWT, Spring JPA, Lombok, Spring DevTools, Microsoft SQL Server, Swagger, Docker and AWS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published