Update 'api.md'
This commit is contained in:
parent
977daefeb8
commit
5cbef8f2f7
2
api.md
2
api.md
@ -15,7 +15,7 @@ curl -H "auth-token: 8eff4f16-086d-40fd-acbd-7634b9a36117" https://admin.rubyisf
|
|||||||
* 200 {"hosts":["mine.com","mine2.com"]}
|
* 200 {"hosts":["mine.com","mine2.com"]}
|
||||||
|
|
||||||
|
|
||||||
## add host
|
## add/edit host
|
||||||
```bash
|
```bash
|
||||||
curl -H "Content-Type: application/json" -H "auth-token: 8eff4f16-086d-40fd-acbd-7634b9a36117" -X POST -d "{\"host\": \"yours.com\", \"ip\": \"127.0.0.1:4000\"}" https://admin.rubyisforpussys.com/api/
|
curl -H "Content-Type: application/json" -H "auth-token: 8eff4f16-086d-40fd-acbd-7634b9a36117" -X POST -d "{\"host\": \"yours.com\", \"ip\": \"127.0.0.1:4000\"}" https://admin.rubyisforpussys.com/api/
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user