-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from DedSecInside/develop
Reorganize code and update documentation
- Loading branch information
Showing
6 changed files
with
70 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# REST API | ||
|
||
## Get Tree | ||
|
||
### GET `http://localhost:{port}/tree?link=` | ||
# REST HTTP API (Examples are using localhost) | ||
|
||
## Get Link Tree | ||
### GET `http://localhost:{port}/tree?link=https://example.com&depth=1` | ||
### Arguments | ||
- link (string): the root URL of the tree | ||
- depth (int): the depth of the tree | ||
|
||
e.g. depth of 1 | ||
### Response | ||
```json | ||
{ | ||
"url": "https://www.example.com", | ||
|
@@ -24,41 +21,30 @@ e.g. depth of 1 | |
``` | ||
|
||
## Get Emails | ||
|
||
### GET `http://localhost:{port}/emails?link=` | ||
|
||
### GET `http://localhost:{port}/emails?link=https://random.com` | ||
### Arguments | ||
- link (string): the root URL of the tree | ||
|
||
### Response | ||
```json | ||
["[email protected]", "[email protected]"] | ||
``` | ||
|
||
## Get Phone Numbers | ||
### GET `http://localhost:{port}/phone_numbers?link=` | ||
### GET `http://localhost:{port}/phone_numbers?link=https://example.com` | ||
### Arguments | ||
- link (string): the root URL of the tree | ||
|
||
### Response | ||
```json | ||
["+1-234-567-8901", "+1-234-567-8902"] | ||
``` | ||
|
||
## Get IP | ||
|
||
## Get current IP of server | ||
### GET `http://localhost:{port}/ip` | ||
|
||
``` | ||
"Random IP Address" | ||
``` | ||
|
||
## Get Web Content | ||
|
||
### GET `http://localhost:{port}/content?link=` | ||
|
||
``` | ||
"Returns the HTML content of the webpage" | ||
### Arguments | ||
N/A | ||
### Response | ||
```json | ||
"127.0.0.1" (returns IP address as plain string) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters