rest client.txt 605 B

123456789101112131415
  1. curl -X POST http://localhost:8080/api/register -d '{"username": "testuser", "password": "password"}' -H "Content-Type: application/json"
  2. ###
  3. curl -X POST http://localhost:8080/api/login -d '{"username": "testuser", "password": "password"}' -H "Content-Type: application/json"
  4. ###
  5. curl -X GET http://localhost:8080/api/protected -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjcwNzI5ODYsInN1YiI6InRlc3R1c2VyIn0.QmKrOdoEUlNVD-Nt-8nMDiRNBe93DELv_BzBnfWcdCg"
  6. ###
  7. curl -X GET http://localhost:8080/api/address/search
  8. ###
  9. curl -X GET http://localhost:8080/api/address/geocode