-
Notifications
You must be signed in to change notification settings - Fork 1
Java Spring Boot
Finn Lippok edited this page Apr 9, 2023
·
9 revisions

sequenceDiagram
Frontend->>+JwtAuthenticationFilter: Add new post request
JwtAuthenticationFilter->>+jwtService: Check Token
jwtService-->>-JwtAuthenticationFilter: Token is Valid
JwtAuthenticationFilter->>+PostController: forward new post Request
PostController->>+UserService: get User
UserService->>+UserRepository: findbyUsername
UserRepository-->>-UserService: User DAO
UserService-->>-PostController: User DAO
PostController->>+PostService: Add new Post
PostService->>+PostRepository: Save post
PostRepository-->>-PostService:
PostService-->>-PostController:
PostController-->>-Frontend: Post DAO as ResponseEntity