McmHam.HarMockServer 1.1.0

dotnet tool install --global McmHam.HarMockServer --version 1.1.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local McmHam.HarMockServer --version 1.1.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=McmHam.HarMockServer&version=1.1.0                
nuke :add-package McmHam.HarMockServer --version 1.1.0                

HAR Mock Server

HAR mock server provides the ability to mock API requests using HAR files. This can be useful for testing or reproduction of reported bugs where a HAR file has been captured in the browser.

https://developers.google.com/web/tools/chrome-devtools/network/reference#save-as-har

Installation

dotnet tool install -g harmockserver

Usage

Update your client app to use HarMockServer as the server app by updating URL to be http://localhost:5000 (you can change this by specifying --urls http://localhost:8000). Then run the following command in the directory where the HAR files live (or by specifying folder via --har-folder path/to/files) specifying the real server app url.

harmockserver --api-url https://api.server.com
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.1.0 235 1/16/2023