io.github.kicksolutions:mock-swagger-reactor

Reactor POM for Mock server based on swagger

License

License

Categories

Categories

React User Interface Web Frameworks Reactor Container Microservices Reactive libraries Swagger Program Interface REST Frameworks
GroupId

GroupId

io.github.kicksolutions
ArtifactId

ArtifactId

mock-swagger-reactor
Last Version

Last Version

0.0.2-beta
Release Date

Release Date

Type

Type

pom
Description

Description

io.github.kicksolutions:mock-swagger-reactor
Reactor POM for Mock server based on swagger
Project URL

Project URL

https://github.com/kicksolutions/swagger2puml
Project Organization

Project Organization

Kick Solutions
Source Code Management

Source Code Management

https://github.com/kicksolutions/mockswagger

Download mock-swagger-reactor

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.kicksolutions/mock-swagger-reactor/ -->
<dependency>
    <groupId>io.github.kicksolutions</groupId>
    <artifactId>mock-swagger-reactor</artifactId>
    <version>0.0.2-beta</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.kicksolutions/mock-swagger-reactor/
implementation 'io.github.kicksolutions:mock-swagger-reactor:0.0.2-beta'
// https://jarcasting.com/artifacts/io.github.kicksolutions/mock-swagger-reactor/
implementation ("io.github.kicksolutions:mock-swagger-reactor:0.0.2-beta")
'io.github.kicksolutions:mock-swagger-reactor:pom:0.0.2-beta'
<dependency org="io.github.kicksolutions" name="mock-swagger-reactor" rev="0.0.2-beta">
  <artifact name="mock-swagger-reactor" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.github.kicksolutions', module='mock-swagger-reactor', version='0.0.2-beta')
)
libraryDependencies += "io.github.kicksolutions" % "mock-swagger-reactor" % "0.0.2-beta"
[io.github.kicksolutions/mock-swagger-reactor "0.0.2-beta"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • mock-swagger-core
  • mock-swagger-server

Build Status Maven Central codecov

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-server

Following are the tools which this project internally uses:

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-<version>-war-exec.jar [options]

-DswaggerLocation {Path/Folder of Swagger Definitions}
-DmockSucessResponses {If to Provide only sucess Responses}

License

Apacahe 2.0

io.github.kicksolutions

Kick Solutions

Versions

Version
0.0.2-beta
0.0.2-alpha
0.0.1-charlie
0.0.1-beta
0.0.1-alpha