This repository was archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
API Description
Jakub Boukal edited this page Sep 28, 2019
·
1 revision
curl -X POST -i http://localhost:8000/signup_api/ --data 'email=foo.bar%40gmail.com&username=0xa1f765189805e0e51Ac9753A9BC7d99e2B90c705'curl http://localhost:8000/login_api/curl http://localhost:8000/login_api/ -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data 'address=0xa1f765189805e0e51ac9753a9bc7d99e2b90c705&signature=0x5a63bc3e403cb4fab29a3441a0f740f80ac3de4c61dd965b12ed2e89b11dfd0865bf7e0c52264af0c8093716f113846e8b9ef97c832ce63c18056c27224bb9271c'curl -X POST -H 'Content-Type: application/json' -i http://localhost:8000/api/ads/ --data '{
"website_link": "http://example.com",
"title": "Check our site",
"description": "Awesome site. Go check",
"reward_per_click": 1,
"questions": [
{
"title": "Was it good?",
"type": "RA",
"answers": [
{
"title": "Good"
},
{
"title": "Bad"
}
]
}
]
}'