Consumir Servicio Spring Boot + JWT con CURL



Generar Token

curl angularapp:12345@localhost:8071/oauth/token -d grant_type=password -d username=42596272 -d password=12345

Get


curl http://192.168.20.64:8071/api/listarParentescoPersona -H "Authorization: Bearer XXXXXX_TOKEN_XXXXXX"


Post

curl http://192.168.20.64:8071/api/buscarPersona -X POST -d "dispositivo=AAAA&dni=42596272" -H "Authorization: Bearer XXXXXX_TOKEN_XXXXXX"

Comentarios

Entradas populares de este blog

Subir proyecto al repositorio existente en Bitbucket

Sonarqube : The component parameter is missing