-
Notifications
You must be signed in to change notification settings - Fork 1
/
curl
22 lines (11 loc) · 1.45 KB
/
curl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SIGNUP:
curl -k -X POST https://0.0.0.0:8080/signup -H "Content-Type: application/json" -d '{"username":"pavel","password":"12345"}'
curl -k -X POST http://0.0.0.0:8080/signup -H "Content-Type: application/json" -d '{"username":"pavel2","password":"12345","firstname":"pavel","lastname":"mendoza","email":"pmendozavx@gmail.com"}'
LOGIN:
curl -k -X POST -F 'username=pavel' -F 'password=12345' https://0.0.0.0:8080/login
jwt:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZSwiZXhwIjoxNTM2NDIzMjU2LCJuYW1lIjoiSm9uIFNub3cifQ.TT71SmZjL3TszwYuzGB1ncipSDRnhBtHZn9cRlIUwoc
curl -k -X GET https://0.0.0.0:8080/restricted/partner/id/ongo -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZSwiZXhwIjoxNTM2OTgzNjYyLCJuYW1lIjoicGF2ZWwifQ._jQ5fhj4JxdbS-4Z4HZete9Il49dD5TThF7oQhv78jY"
curl -k -X POST https://0.0.0.0:8080/restricted/logs/connectlandedcost -d '{"partner_key":"83fe5d5562d1cef011a8d443a2dcd93f2c8ce1d3a296303626ef76f4af8eaa51","destination_country":"PE","Agent":"item_wildcard"}' -H "Content-Type: application/json" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZSwiZXhwIjoxNTM2NTIxMzMxLCJuYW1lIjoicGF2ZWwifQ.Iph8nVrA6ufVBxn104dMolGhfAKW7X5a2FEKKGNk0HY"
PARTNER INFO QUERY
curl -k -X GET https://0.0.0.0:8080/restricted/partner/ongo -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZSwiZXhwIjoxNTM4MTc1MTM4LCJuYW1lIjoicGF2ZWwifQ.i63t5zn2uQOO3judk_MIN451h6yaBS67s8peOmPCsic"