feat: API Handlers

This commit is contained in:
Karan Sharma 2021-02-27 14:01:59 +05:30
parent b753631012
commit f389c9c876
8 changed files with 249 additions and 71 deletions

13
www/api/api.md Normal file
View file

@ -0,0 +1,13 @@
# Usage
```
curl --request POST \
--url http://localhost:8080/lookup/ \
--header 'Content-Type: application/json' \
--data '{
"query": ["mrkaran.dev"],
"type": ["A"],
"class": ["IN"],
"nameservers": ["9.9.9.9"]
}'
```