-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"label": "Configuration", | ||
"position": 7 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Configuration | ||
|
||
The configuration can be made in the `appsettings.json` file inside `Settings` folder. | ||
|
||
## `DefaultHttpStatusCode` | ||
|
||
Set the default HTTP status code returned when the mock does not specify one. | ||
|
||
Default: `OK` (200) | ||
|
||
## `ErrorHttpStatusCode` | ||
|
||
Set the default HTTP status code in case there is no matching mock available. | ||
|
||
Default: `NotImplemented` (501) | ||
|
||
## `DefaultHttpContentType` | ||
|
||
Set the default HTTP `Content-Type` header response when the mock does not specify one. | ||
|
||
Default: `application/json` | ||
|
||
## `References` | ||
|
||
A list of references to other .NET assemblies to extend scripting engine. | ||
|
||
Default: `[]` | ||
|
||
## `Imports` | ||
|
||
A list of namespaces to be imported and made available in scripting engine. | ||
|
||
Default: `[]` | ||
|
||
## `MatchedRoutesCacheDuration` | ||
|
||
Set the cache duration in minutes to be used by the verification endpoint. | ||
|
||
## `MockacoEndpoint` | ||
|
||
The exclusive endpoint to access internal features. | ||
|
||
Default: `_mockaco` | ||
|
||
## `VerificationEndpointName` | ||
|
||
The name of the verification endpoint. | ||
|
||
Default: `verification` | ||
|
||
## `TemplateFileProvider` | ||
|
||
Configure the mock template file provider. | ||
|
||
### `Path` | ||
|
||
Define the mock template files path. | ||
|
||
Default: `Mocks` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters