-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurl.txt
19 lines (12 loc) · 954 Bytes
/
curl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
curl -H 'Accept: application/json; indent=4' -u admin:password123 http://127.0.0.1:8000/users/
curl -H 'Accept: application/json; indent=4' -u admin:password123 http://127.0.0.1:8000/bonos/
curl -H 'Accept: application/json; indent=4' -u admin:password123 http://127.0.0.1:8000/bonos/4/
curl -H 'Accept: application/json; indent=4' -u admin:password123 http://127.0.0.1:8000/bonos/4/comprabono/
curl -H 'Accept: application/json; indent=4' -u admin:password123 http://127.0.0.1:8000/bonos/4/preciousd/
curl -H 'Accept: application/json; indent=4' -u admin:password123 \
--request POST \
--data '{"bono_name":"xyz","bono_number":5000, "bono_price":9999.99}' \
http://127.0.0.1:8000/bonos/
curl -H 'Accept: application/json; indent=4' -u admin:password123 -F 'bono_name=ADMDOS' -F 'bono_number=5000' -F 'bono_price=9999.99' -F 'created_by=1' http://127.0.0.1:8000/bonos/
Token banxico
998e9ae2587c2e90d01c616faad0fa854d14fee0ae00e48c44d4dbcf90612c12