"# TestTask"
For app should be configured PostgreSQL DB and create database "names" schema "names". Or you can use other DB name and change it in queries in src/main/java/task/db/UserDao .java.
Valid "in memory" login&pass are: "user" - "pass" and "admin" - "admin". There are in Secrets class. For SMTP service change "email" and "password" (Mb change message subject) in src/main/java/task /smtp/SmtpService.java.
-
PUT http://localhost:8080/v1/name Request : { "Name": , "Age": }
Response : "200 Request succeeded or 400 Badly formatted.". -
GET http://localhost:8080/v1/auth but with BasicAuth instead of JWT auth (username - "user", password - "pass" or username - "admin", password - "admin") Response : "200 Authorization success." or - "401 Invalid authentication credentials.".
-
GET http://localhost:8080/v1/name/ Response : "200 { "Names": ["name1", "name2", โฆ , "nameN"] }".
-
SMTP Client. PUT http://localhost:8080/v1/message/smtp/ Request : "{ "message": , "address": }".
Response : "200 Message "message" sent to "address."" or - "400 Bad request.".