Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kicksolutions/mockswagger
This Creates a mock service for given swagger definitions.
https://github.com/kicksolutions/mockswagger
mock mock-server openapi swagger
Last synced: about 1 month ago
JSON representation
This Creates a mock service for given swagger definitions.
- Host: GitHub
- URL: https://github.com/kicksolutions/mockswagger
- Owner: kicksolutions
- License: apache-2.0
- Created: 2017-12-31T06:49:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T04:24:59.000Z (almost 2 years ago)
- Last Synced: 2024-09-28T13:21:49.328Z (about 2 months ago)
- Topics: mock, mock-server, openapi, swagger
- Language: Java
- Size: 39.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/kicksolutions/mockswagger.svg?branch=master)](https://travis-ci.org/kicksolutions/mockswagger)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-codegen-project/badge.svg?style=plastic)](https://oss.sonatype.org/#nexus-search;gav~io.github.kicksolutions~mock-swagger-server~~~)
[![codecov](https://codecov.io/gh/kicksolutions/swagger2puml/branch/master/graph/badge.svg)](https://codecov.io/gh/kicksolutions/mockswagger)# Mock Swagger
This Creates a mock service for given swagger definitions.
This Project is based on Maven and plan to support Gradle also in future.
Following are modules we currently have- mock-swagger-core
- mock-swagger-serverFollowing are the tools which this project internally uses:
- [Swagger Parser]
# How does it work
- Mock Swagger Server internally reads the swagger definitions using [Swagger Parser] which constructs a Map of URI's, Methods and Example of Responses.
- If the System Variable mockSucessResponses is set to true then application will return only mock responses from Response Codes <=400
- Else it will return randomly any response code.### Usage:
```
java -jar mock-swagger-server--war-exec.jar [options]-DswaggerLocation {Path/Folder of Swagger Definitions}
-DmockSucessResponses {If to Provide only sucess Responses}
```License
----Apacahe 2.0
[Swagger]:
[Swagger Parser]: