moamenhady/greatblogs-api
Backend Spring Boot API modelling a blogging web app
9.6K
This is a RESTful API for a simple blog engine developed using Spring Boot, Spring Data, Spring Security, and PostgreSQL.
Make sure you have the following installed on your machine:
Clone the repository:
git clone https://github.com/moamenhady/greatblogs-api.git
Build the project using Maven:
cd greatblogs-api
mvn clean install
Configuration
Configure the database connection in src/main/resources/application.yml
:
url: jdbc:postgresql://localhost:5432/your_database
username: your_username
password: your_password
Configure other properties as needed (e.g., server port, logging).
java -jar target/greatblogs-api-1.2.3.jar
Access the API at http://localhost:8080/
All endpoints require user to be authenticated except /authors/signup
authors:
posts:
This API uses Basic Authentication. Include the Authorization header in your requests with the format Basic base64(username:password).
Example using curl:
curl -X GET -H "Authorization: Basic base64(username:password)" http://localhost:8080/authors/all
This project is licensed under the MIT License.
docker pull moamenhady/greatblogs-api