documented routes
This commit is contained in:
parent
daa8305dde
commit
34cfebf89c
39
ParadoxSaveParser.WebAPI/README.md
Normal file
39
ParadoxSaveParser.WebAPI/README.md
Normal file
@ -0,0 +1,39 @@
|
||||
# WebAPI
|
||||
Simple web application created using DTLib.Web.
|
||||
|
||||
# Routes
|
||||
|
||||
### POST `/uploadSave/eu4`
|
||||
- **Request:** `application/octet-stream` - .eu4 file
|
||||
- **Response:**
|
||||
```json
|
||||
{ "saveId": "string" }
|
||||
```
|
||||
or `{ "errorMessage": "string" }`
|
||||
|
||||
### GET `/getSaveStatus`
|
||||
- **Query Params:**
|
||||
- `id` - id of uploaded save file
|
||||
- **Response:** [SaveFileMetadata](./SaveFileMetadata.cs)
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"game": "string",
|
||||
"status": "string",
|
||||
"errorMessage": "string?"
|
||||
}
|
||||
```
|
||||
|
||||
### GET `/getSaveData`
|
||||
- **Query Params:**
|
||||
- `id` - id of uploaded save file
|
||||
- **Response:**
|
||||
```json5
|
||||
{
|
||||
"key0": [ "objects" ],
|
||||
"key1": [ "objects" ],
|
||||
//...
|
||||
}
|
||||
```
|
||||
or `{ "errorMessage": "string" }`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user