mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
21 lines
777 B
Bash
Executable File
21 lines
777 B
Bash
Executable File
# curl -w '\n' \
|
|
# -H 'Content-Type: application/json' \
|
|
# -d '{"username":"foo","password":"bar"}' \
|
|
# http://localhost:3000/api/auth
|
|
|
|
|
|
|
|
curl -s \
|
|
-w '\n' \
|
|
-H 'Content-Type: application/json' \
|
|
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjQ2NjU1ODMsImlhdCI6MTc2NDYyMjM4MywiZW1haWwiOiJmb28ifQ.NeStaGwWBGS825rF11TOH_e79RWEL_2o3SY9jZ5CX20' \
|
|
-d "jwbrjwbremnwebrnmwemnrbnmwerbnmwer" \
|
|
http://localhost:3000/api/test
|
|
|
|
|
|
curl -s \
|
|
-w '\n' \
|
|
-H 'Content-Type: application/json' \
|
|
-H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjQ2NjU1ODMsImlhdCI6MTc2NDYyMjM4MywiZW1haWwiOiJmb28ifQ.NeStaGwWBGS825rF11TOH_e79RWEL_2o3SY9jZ5CX20' \
|
|
http://localhost:3000/api/test/test2
|