Skip to content

rkacharov/File-Converter

Repository files navigation

About

FileConverter is a .NET 7 ASP.NET REST API for converting files.

Supported conversions:

  • XML to JSON files

Supported storages:

  • Physical Storage

Usage

The API has Swagger document generator enabled on 'Development' environment.

In order to test the endpoints follow the steps below:

  1. Open the FileConverter solution in Visual Studio preferably 2022
  2. Build the solution /this will automatically restore used NuGet packages/
  3. Optional: Run the unit tests placed inside FileConverter.Api.UnitTests project
  4. Start FileConverter.Api project /this will open the Swagger page/

Configuring

  1. Optional: If needed change the directory where the converted files are stored - adjust ConvertedFileDirectory placed inside FileConverter.Api, appsettings.Development.json configuration file

XmlConverter

  1. 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

License

MIT

About

.NET 7 WEB API for converting files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages