We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46ae36a commit 3939890Copy full SHA for 3939890
1 file changed
README.md
@@ -98,6 +98,16 @@ It also acts as the webserver to serve the front end react application
98
99
All api actions are accessible with the /api route. The frontend is accessible from /.
100
101
+### API Auth
102
+
103
+To authenticate with the API and get access to its functionality, you need to login first.
104
105
+Here is a small example showing how to do it with a local install using default credentials, via the tool curl:
106
+```
107
+curl --cookie-jar cookie.txt --insecure --data '{"username":"admin","password":"factorio"}' -H "Content-Type: application/json" -X POST https://localhost/api/login
108
+curl --cookie cookie.txt --insecure https://localhost/api/server/status
109
110
111
#### Requirements
112
+ Go 1.11
113
+ NodeJS
0 commit comments