No description
Find a file
2024-03-14 16:26:02 -04:00
src fix stuff 2024-03-14 16:14:24 -04:00
.env.example fix some routing 2024-03-14 11:47:23 -04:00
.gitignore fix some routing 2024-03-14 11:47:23 -04:00
LICENSE Initial commit 2024-03-13 19:25:45 -04:00
package-lock.json yay, api 2024-03-13 19:55:47 -04:00
package.json yay, api 2024-03-13 19:55:47 -04:00
README.md Update README.md 2024-03-14 16:26:02 -04:00

Revela-API

To generate an API key run: npm run genkey to start the API run: npm start

Curl commands for Windows:

curl -X GET "https://api.revela.network/urls" ^
     -A "useragent" ^
     -H "Content-Type: application/json" ^
     -H "api-key: apikey" 

curl -X POST "https://api.revela.network/urls" ^
     -A "useragent" ^
     -H "Content-Type: application/json" ^
     -H "api-key: apikey" ^
     -d "{\"domain\":\"domain.tld\", \"is_public\":<true or false>}"

curl -X DELETE "https://api.revela.network/urls" ^
     -A "useragent" ^
     -H "Content-Type: application/json" ^
     -H "api-key: apikey" ^
     -d "{\"domain\":\"domain.tld\", \"is_public\":<true or false>}"

curl -X PATCH "https://api.revela.network/urls" ^
     -A "useragent" ^
     -H "Content-Type: application/json" ^
     -H "api-key: apikey" ^
     -d "{\"domain\":\"domain2.tld\", \"is_public\":<true or false>}"

Curl commands for Unix:

curl -X GET "https://api.revela.network/urls" /
     -A "useragent" /
     -H "Content-Type: application/json" /
     -H "api-key: apikey" 

curl -X POST "https://api.revela.network/urls" /
     -A "useragent" /
     -H "Content-Type: application/json" /
     -H "api-key: apikey" /
     -d "{\"domain\":\"domain.tld\", \"is_public\":<true or false>}"

curl -X DELETE "https://api.revela.network/urls" /
     -A "useragent" /
     -H "Content-Type: application/json" /
     -H "api-key: apikey" /
     -d "{\"domain\":\"domain.tld\", \"is_public\":<true or false>}"

curl -X PATCH "https://api.revela.network/urls" /
     -A "useragent" /
     -H "Content-Type: application/json" /
     -H "api-key: apikey" /
     -d "{\"domain\":\"domain2.tld\", \"is_public\":<true or false>}"