ParadoxSaveParser/ParadoxSaveParser.WebAPI
2025-04-10 15:42:39 +05:00
..
BackgroundTasks SaveDataFilter 2025-04-10 15:42:39 +05:00
HttpHelpers disabled null values serialization 2025-04-06 15:55:58 +05:00
Protobuf began Protobuf integration 2025-04-06 17:45:54 +05:00
Routes SaveDataFilter 2025-04-10 15:42:39 +05:00
SaveDataFilters SaveDataFilter 2025-04-10 15:42:39 +05:00
Config.cs code reformat and cleanup 2025-04-05 05:59:22 +05:00
ParadoxSaveParser.WebAPI.csproj began Protobuf integration 2025-04-06 17:45:54 +05:00
PathHelper.cs refactored responses 2025-04-06 15:37:32 +05:00
Program.cs SaveDataFilter 2025-04-10 15:42:39 +05:00
README.md documented routes 2025-04-06 16:19:03 +05:00
SaveFileMetadata.cs disabled null values serialization 2025-04-06 15:55:58 +05:00

WebAPI

Simple web application created using DTLib.Web.

Routes

POST /uploadSave/eu4

  • Request: application/octet-stream - .eu4 file
  • Response:
    { "saveId": "string" }
    
    or { "errorMessage": "string" }

GET /getSaveStatus

  • Query Params:
    • id - id of uploaded save file
  • Response: SaveFileMetadata
    {
        "id": "string",
        "game": "string",
        "status": "string",
        "errorMessage": "string?"
    }
    

GET /getSaveData

  • Query Params:
    • id - id of uploaded save file
  • Response:
    {
        "key0": [ "objects" ],
        "key1": [ "objects" ],
        //...
    }
    
    or { "errorMessage": "string" }