Skip to content

Commit 8314b03

Browse files
committed
chore: updated versions
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
1 parent 4f1533a commit 8314b03

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
| Factorio RCON API | Factorio Server |
1010
|-------------------|-----------------|
11-
| 1.1.0 | 1.x |
12-
| 2.0.0 (WIP) | 2.x |
11+
| 1.1.0 (`/api/v1`) | 1.x |
12+
| 2.0.0 (`/api/v2`) | 2.x |
1313

1414
## Features
1515

@@ -170,7 +170,7 @@ docker run \
170170
That's it, you can now call the API with the following command:
171171

172172
```shell
173-
curl -X GET http://localhost:24180/api/v1/factorio/console/command/version
173+
curl -X GET http://localhost:24180/api/v2/factorio/console/command/version
174174
```
175175

176176
to get the version of the Factorio game server.
@@ -183,8 +183,8 @@ With the demo server at [https://factorio-rcon-api.ayaka.io/apis/docs/v2](https:
183183

184184
Alternatively, we ship the OpenAPI v2 and v3 spec in the repository:
185185

186-
- OpenAPI v2 spec: [v1.swagger.json](https://github.com/nekomeowww/factorio-rcon-api/blob/main/apis/factorioapi/v1/v1.swagger.json)
187-
- OpenAPI v3 spec: [v1.swagger.v3.yaml](https://github.com/nekomeowww/factorio-rcon-api/blob/main/apis/factorioapi/v1/v1.swagger.v3.yaml)
186+
- OpenAPI v2 spec: [v2.swagger.json](https://github.com/nekomeowww/factorio-rcon-api/blob/main/apis/factorioapi/v2/v2.swagger.json)
187+
- OpenAPI v3 spec: [v2.swagger.v3.yaml](https://github.com/nekomeowww/factorio-rcon-api/blob/main/apis/factorioapi/v2/v2.swagger.v3.yaml)
188188

189189
> [!TIP]
190190
> Additionally, we can ship the SDKs for Lua, TypeScript and Python (widely used for mods, admin panels, bots) in the future, you are welcome to contribute to the project.

0 commit comments

Comments
 (0)