- Successfully login will create acces_token & refresh_token on the cookies
- Logout will remove access_token & refresh_token from the cookies
- CRUD operation authorized only if user is authenticated given access on URI "/api/"
Java 21
Spring Boot: 3.2.0
Spring Security: 6.2.0
H2 Database: 2.2.224
Hibernate: 6.3.1.Final
GraphQL: 3.2.0
Swagger OpenAPI: 2.3.0
Lombok : 1.18.30
Actuator: 3.2.0
Modelmapper: 3.2.0
Request example on Graphiql UI:
allArticles{
id_article
title
text
status
created
}
}It will create the access token and refresh token on the cookies
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 500 | Internal Server Error |
It will remove access and refresh token from the cookies
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 500 | Internal Server Error |
If refresh token is not expired, access token will refresh
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 500 | Internal Server Error |
Update user
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 500 | Internal Server Error |
Create user
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 500 | Internal Server Error |
Find user
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 500 | Internal Server Error |
Find by ID
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | Yes | long |
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 500 | Internal Server Error |
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| id | path | Yes | long |
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 500 | Internal Server Error |