Skip to content

Commit 930ab0d

Browse files
committed
Updated with Swagger specs hosted at /api endpoint
1 parent f5af768 commit 930ab0d

File tree

3 files changed

+355
-8
lines changed

3 files changed

+355
-8
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ If you get a 200 OK, in the other terminal window you should see the following i
3838
127.0.0.1 - - [13/Jul/2016 11:22:28] "GET / HTTP/1.1" 200 -
3939
modbus_tk.simulator is running...
4040
```
41+
42+
To interact with the API via browser, navigate to:
43+
```
44+
http://127.0.0.1:5002/api
45+
```
46+
4147
It is possible to interact with the simulator via the console here to issue commands to add slaves/changes values/add blocks.
4248

4349
You can dump/load the state of all slaves or individual slaves or even registers all via the REST API. You can confirm this by visiting the following url in your browser:

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ flask
22
modbus_tk
33
pyserial
44
watchdog
5+
flasgger

0 commit comments

Comments
 (0)