Skip to content

Latest commit

 

History

History

4.spring-cloud-apigw-custom-filter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Spring Cloud APIGW

Eureka: http://localhost:8010/

POST ->

curl --location --request POST 'http://localhost:8011/users-ws/users' \
--header 'Authorization: Bearer ABC' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName": "Prateek",
    "lastName": "Ashtikar",
    "password": "12345678",
    "email": "[email protected]"
}'

Screenshot 2022-07-06 at 10 01 49 PM

POST ->

curl --location --request POST 'http://localhost:8011/users-ws/users/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "[email protected]",
    "password" : "12345678"
}'

Screenshot 2022-07-06 at 10 03 22 PM

JWT -> eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiI1NjM3YjEwNi0yZDYxLTQwMTgtOTAwMi1jMmRlOTlmY2YyZjkiLCJleHAiOjE2NTc5ODg0OTd9.cpx18jTFGIjlsX4JzgUJZdukqxvLU7G_jd7XR6sxIYG2IlfH35nKuG_KACeIO7MIyCr6bPgXWXvC6jQZc6ek0A

GET ->

curl --location --request GET 'http://localhost:8011/users-ws/users/status/check' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiI1NjM3YjEwNi0yZDYxLTQwMTgtOTAwMi1jMmRlOTlmY2YyZjkiLCJleHAiOjE2NTc5ODg0OTd9.cpx18jTFGIjlsX4JzgUJZdukqxvLU7G_jd7XR6sxIYG2IlfH35nKuG_KACeIO7MIyCr6bPgXWXvC6jQZc6ek0A'

Screenshot 2022-07-06 at 10 20 26 PM