Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/natenho/Mockaco
🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
https://github.com/natenho/Mockaco
api-mock aspnet aspnet-core csharp dotnet-core engine fake faker hacktoberfest mock mock-apis mock-server mocking mocks mocks-generator roslyn testing
Last synced: 3 months ago
JSON representation
🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
- Host: GitHub
- URL: https://github.com/natenho/Mockaco
- Owner: natenho
- License: other
- Created: 2019-03-13T04:05:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T03:14:37.000Z (10 months ago)
- Last Synced: 2024-04-13T02:39:37.679Z (9 months ago)
- Topics: api-mock, aspnet, aspnet-core, csharp, dotnet-core, engine, fake, faker, hacktoberfest, mock, mock-apis, mock-server, mocking, mocks, mocks-generator, roslyn, testing
- Language: C#
- Homepage: https://natenho.github.io/Mockaco/
- Size: 1.96 MB
- Stars: 316
- Watchers: 13
- Forks: 34
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Mockaco
[![Main Build](https://github.com/natenho/Mockaco/actions/workflows/main-release.yml/badge.svg)](https://github.com/natenho/Mockaco/actions/workflows/main-release.yml) [![Docker Pulls](https://img.shields.io/docker/pulls/natenho/mockaco)](https://hub.docker.com/repository/docker/natenho/mockaco) [![Nuget](https://img.shields.io/nuget/dt/Mockaco?color=blue&label=nuget%20downloads)](https://www.nuget.org/packages/Mockaco/) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fnatenho%2FMockaco.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fnatenho%2FMockaco?ref=badge_shield)
Mockaco is an HTTP-based API mock server with fast setup.
## Features
- **Simple JSON-based Configuration**: Configure your mocks easily using a simple JSON format.
- **Pure C# Scripting**: Configure your mocks using C# scripting without the need to learn a new language or API.
- **Delay Simulation**: Simulate network delays to test how your system handles timeouts and latency.
- **Fake Data Generation**: Generate realistic fake data using the built-in functionality.
- **Callback (Webhook) Support**: Trigger another service call when a request hits your mocked API.
- **Verification**: Verify if a specific mock was called during testing to ensure expected interactions.
- **State Support**: Create stateful mocks that return responses based on global variables previously set by other mocks.
- **Portability**: Run the mock server in [any environment supported by .NET](https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md).## Get Started
Access the documentation on [natenho.github.io/Mockaco](https://natenho.github.io/Mockaco/)
[![Mocking APIs with Mockaco | .NET 7](https://user-images.githubusercontent.com/4236481/195997781-b730959e-8d6d-432c-b35a-3adb580abc41.png)](https://www.youtube.com/watch?v=QBnXCgZFzM0 "Mocking APIs with Mockaco | .NET 7")
## License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fnatenho%2FMockaco.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fnatenho%2FMockaco?ref=badge_large)---
*Icon made by [Freepik](https://www.freepik.com/ "Freepik") from [www.flaticon.com](https://www.flaticon.com/ "Flaticon") is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/ "Creative Commons BY 3.0")*