lisan
JCHJava Community | Help. Code. Learn.
•Created by lisan on 10/1/2024 in #java-help
Testcontainers and application-test.yml
I have a question do i need add properties to application-test if im using testcontainers for mysql for example:
the part of initialize:
or (here is kafka and postgres, but i think this doesnt matter)
so should i have something in my application-test.yml with mysql? or initializing those properties in test containers is enough
4 replies
JCHJava Community | Help. Code. Learn.
•Created by lisan on 6/9/2024 in #java-help
JWT return Dto. Login and Register REST Endpoints
REST
Returning token when register and login? Does it make sense? Maybe shouldnt. Why, why not. If not how can i login and have authentication to other endpoints. What return
4 replies
JCHJava Community | Help. Code. Learn.
•Created by lisan on 6/4/2024 in #java-help
Richardson Mapping With Spring Security
Hi, Im curious about, how to properly create mappings for security endpoints.
I have now a UserController.
So where would you like to put mappings like "login, register and verify email", to UserController or AuthController.
And how would you like to create endpoints.
I have only users.
For example if we chose UserController -> "/api/v1/users"
Is this good?
5 replies
JCHJava Community | Help. Code. Learn.
•Created by lisan on 5/26/2024 in #java-help
Maturity level rest
Hi i have a question, do you think these mappings are properly defined for maturity level?
I have a controller with authentication to create Clients.
/api/v1/auth:
register:
@PostMapping("/register") + request body
login:
@PostMapping("/login") + headery
email-verify (after registration to get authorized):
@GetMapping("/verify/{token}") + path variable
Maybe these mappings should be in client controller too?
4 replies