FileConverter is a .NET 7 ASP.NET REST API for converting files.
Supported conversions:
- XML to JSON files
Supported storages:
- Physical Storage
The API has Swagger document generator enabled on 'Development' environment.
In order to test the endpoints follow the steps below:
- Open the
FileConverter
solution in Visual Studio preferably 2022 - Build the solution /this will automatically restore used NuGet packages/
- Optional: Run the unit tests placed inside
FileConverter.Api.UnitTests
project - Start
FileConverter.Api
project /this will open the Swagger page/
Configuring
- Optional: If needed change the directory where the converted files are stored -
adjust
ConvertedFileDirectory
placed insideFileConverter.Api
,appsettings.Development.json
configuration file
- ToJson
- Expand the api/XmlConverter/ToJson
POST
endpoint - Choose file for the parameter
File
- Click on
Execute
button - See the result in
Server response
sectioin