Update README.md
This commit is contained in:
parent
5de4027d64
commit
63602265fb
1 changed files with 57 additions and 1 deletions
56
README.md
56
README.md
|
|
@ -2,3 +2,59 @@
|
|||
|
||||
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>}"
|
||||
|
||||
```
|
||||
Loading…
Add table
Reference in a new issue