Skip to content

Simple rest api to combine users with posts based on spring-boot

Notifications You must be signed in to change notification settings

gitlabbin/blog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog admin API on SpringBoot

A simple rest api to combine users and posts in blog application.

Service Component Flow

BlogController
        --> ContentRepository (Users json)
        --> ContentScheduler --> ContentPublisher              |
                                        --> UserServiceImpl    |--> ContentRepository (Users json)
                                        --> PostServiceImpl    |

Steps to Run

. Build and run the app using maven

./mvnw clean package
java -jar target/blog-api-1.0.0-SNAPSHOT.jar

Alternatively, you can run the app without packaging it using

./mvnw spring-boot:run

The app will start running at http://localhost:8080/users.

Explore Rest APIs

The app defines following endpoint APIs of GET.

http://localhost:8080/users

**. Change config properties **

  • open src/main/resources/application.properties
# api service
api.user.url=https://jsonplaceholder.typicode.com/users

api.post.url=https://jsonplaceholder.typicode.com/posts

# Scheduler
fixedDelay.input=120000     # 2 minutes
initialDelay.input=2000     # 2 seconds

About

Simple rest api to combine users with posts based on spring-boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages