Skip to content

Mock Server based on OpenAPI Spec (Swagger) for integration testing clients

Notifications You must be signed in to change notification settings

Decad/SwaggerMock

Repository files navigation

SwaggerMock

Build status

Mock Server based on OpenAPI Spec (Swagger) for integration testing clients

Why would I need this?

This project was designed to test Client Libraries for APIs to ensure that they are correctly implemented based on the APIs OpenAPI spec.

Usage

var swaggerDocument = File.ReadAllText("petstore-simple.json")
var mockServer = new MockSwaggerServer(swaggerDocument);
var response = await mockerServer.Client.GetAsync("/api/pets/1");

About

Mock Server based on OpenAPI Spec (Swagger) for integration testing clients

Resources

Stars

Watchers

Forks

Packages

No packages published