Update README.md
This commit is contained in:
parent
5de4027d64
commit
63602265fb
1 changed files with 57 additions and 1 deletions
58
README.md
58
README.md
|
|
@ -1,4 +1,60 @@
|
||||||
# Revela-API
|
# Revela-API
|
||||||
|
|
||||||
To generate an API key run: `npm run genkey`
|
To generate an API key run: `npm run genkey`
|
||||||
to start the API run: `npm start`
|
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>}"
|
||||||
|
|
||||||
|
```
|
||||||
Loading…
Add table
Reference in a new issue