Skip to content

Commit 62302d1

Browse files
committed
README upd
1 parent 3aa63fe commit 62302d1

File tree

3 files changed

+55
-19
lines changed

3 files changed

+55
-19
lines changed

README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
Lightweight network IP scanner with web GUI
1313
> [!WARNING]
14-
> This README is about version 2.0. Version 1.0 can be found in this brunch: [v1](https://github.com/aceberg/WatchYourLAN/tree/v1)
15-
16-
> [!BREAKING CHANGES]
17-
> Version 2.0 is not compatible with v1.0. For now v2.0 docker images will be released under `v2` tag. It will be tagged `latest` in a few weeks (probably, in October), to give everyone enough time for a smooth migration.
14+
> This is version 2.0. Version 1.0 can be found in this brunch: [v1](https://github.com/aceberg/WatchYourLAN/tree/v1)
15+
>
16+
> <span style="font-size:1.5em;color:orange">Breaking Changes</span>
17+
>
18+
> Version 2.0 is not compatible with v1.0. For now v2.0 docker images will be released under `v2` tag. It will be tagged `latest` in a few weeks (probably, in October).
1819
1920
![Screenshot_1](https://raw.githubusercontent.com/aceberg/WatchYourLAN/main/assets/Screenshot_1.png)
2021

@@ -147,6 +148,14 @@ Or use [docker-compose](docker-compose-local.yml)
147148

148149
</details>
149150

151+
## API
152+
153+
<details>
154+
<summary>Expand</summary>
155+
156+
Moved to [docs/API.md](./docs/API.md)
157+
</details>
158+
150159
## Thanks
151160
<details>
152161
<summary>Expand</summary>

docs/API.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## API
2+
```http
3+
GET /api/all
4+
```
5+
Returns all hosts in `json`.
6+
7+
8+
```http
9+
GET /api/history/*mac
10+
```
11+
Returns all History. If `mac` is not empty, returns only history of a device with this `mac`.
12+
13+
14+
```http
15+
GET /api/host/:id
16+
```
17+
Returns host with this `id` in `json`.
18+
19+
20+
```http
21+
GET /api/port/:addr/:port
22+
```
23+
Gets state of one `port` of `addr`. Returns `true` if port is open or `false` otherwise.
24+
<details>
25+
<summary>Request example</summary>
26+
27+
```bash
28+
curl http://0.0.0.0:8840/api/port/192.168.2.2/8844
29+
```
30+
</details><br>
31+
32+
33+
```http
34+
GET /api/edit/:id/:name/*known
35+
```
36+
Edit host with ID `id`. Can change `name`. `known` is optional, when set to `toggle` will change Known state.
37+
38+
39+
```http
40+
GET /api/host/del/:id
41+
```
42+
Remove host with ID `id`.

docs/BCRYPT.md

-15
This file was deleted.

0 commit comments

Comments
 (0)