For This Forum using Spring Boot, Spring Security with JPA Authentication, Spring Data JPA with MySQL, Spring MVC.
Post time management tool: https://github.com/marlonlom/timeago
MapStruct: https://mapstruct.org/
Entity | Type | URL | Description |
---|---|---|---|
User | POST | api/auth/signup | User sing up / registration. |
POST | api/auth/login | User logging in, authenticate. | |
POST | api/auth/refresh/token | New authentication token generation for the current user. | |
POST | api/auth/logout | Delete actual logged in user token. | |
GET | api/auth/accountVerification/{token} | User profile activation. | |
Comment | POST | api/comments | User create a comment to the selected post. |
GET | api/comments/by-post/{postId} | Read comments of the selected post. | |
GET | api/comments/by-user/{userName} | Read comments of the selected User. | |
Post | POST | api/posts/ | Create post. |
GET | api/posts/{id} | Read a single selected post. | |
GET | api/posts/by-subforum/{id} | Read all posts from the selected forum. | |
GET | api/posts/by-user/{username} | Read all posts of the selected user. | |
Subforum | POST | api/subforum | Create forum. |
GET | api/subforum | Read all existing subforum. (Short informations about forums.) | |
GET | api/subforum/{id} | Read selected subforum. | |
Vote | POST | api/votes | Vote / Like a post. |