package
0.0.0-20250227233008-6305ea83e4e1
Repository: https://github.com/bhatti/api-mock-service.git
Documentation: pkg.go.dev

# Functions

AddAssertion helper method.
BuildScenarioFromHTTP helper method.
BuildTestConfig helper method.
BuildTestScenario helper method.
MatchPathGroups return match groups for dynamic params in path.
NewConfiguration -- Initializes the default config.
NewNotFoundError constructor.
NewProducerContractRequest constructor.
NewProducerContractResponse constructor.
NewValidationError constructor.
NewVersion will create a pointer to a new version object.
NormalizeDirPath normalizes dir path.
NormalizeGroup normalizes group name.
NormalizePath normalizes path.
SanitizeNonAlphabet helper method.
SanitizeRegexValue sanitizes (val string) string {.
ToMethod converts string to method.

# Constants

APIKey stands for API Key Authentication.
APIKeyHeader constant.
AuthorizationHeader constant.
No description provided by the author
AWSV4 is Amazon AWS Authentication.
Basic Authentication.
Bearer Token Authentication.
Connect HTTP request.
ContentLengthHeader header.
ContentTypeHeader header.
Copy HTTP Method.
Delete HTTP request.
Digest Authentication.
ETagHeader canonical name.
Get HTTP request.
Hawk Authentication.
Head HTTP request.
No description provided by the author
No description provided by the author
Link HTTP Method.
Lock HTTP Method.
MockChaosEnabled header.
MockGroup header.
MockPlayback header.
MockRecordMode header.
MockRecordModeDisabled disabled value.
MockRecordModeEnabled enabled value.
MockRequestCount header.
MockResponseStatus header.
MockScenarioHeader header.
MockScenarioPath header.
MockURL header.
MockWaitBeforeReply header.
NoAuth Authentication.
NTLM Authentication.
OAuth1 Authentication.
OAuth2 Authentication.
Option HTTP request.
Options HTTP request.
Patch HTTP request.
Post
Post HTTP request.
Propfind HTTP Method.
Purge HTTP Method.
Put HTTP request.
ScenarioExt extension.
Trace HTTP request.
Unlink HTTP Method.
Unlock HTTP Method.
View HTTP Method.

# Structs

APIAuthorization defines mock auth parameters.
APIKeyConfig configuration.
APIKeyData defines keys of api scenario for in-memory store.
APIRequest defines mock request for APIs.
APIResponse defines mock response for APIs.
No description provided by the author
APIScenario defines mock scenario for APIs.
APIVariables defines shared variables for APIs.
AWSConfig config.
BasicAuthConfig config.
Configuration for mock api service.
DigestAuthConfig configuration.
GroupConfig for group configuration.
HMACConfig configuration.
JWTConfig configuration.
NotFoundError error.
OAuth2Config configuration.
ProducerContractRequest for generating fuzz-data requests to an API implementation for producer based contract testing.
ProducerContractResponse for returning summary of producer based test results.
ValidationError error.
Version creates a formatted struct for output.

# Type aliases

AuthType for API authorization.
MethodType for HTTP.