Decad / SwaggerMock

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C# 92.0%Language:PowerShell 8.0%