io.github.kicksolutions:mock-swagger-server

Server

License

License

Categories

Categories

Swagger Program Interface REST Frameworks
GroupId

GroupId

io.github.kicksolutions
ArtifactId

ArtifactId

mock-swagger-server
Last Version

Last Version

0.0.2-beta
Release Date

Release Date

Type

Type

war
Description

Description

io.github.kicksolutions:mock-swagger-server
Server
Project Organization

Project Organization

Kick Solutions

Download mock-swagger-server

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.1.0
io.github.kicksolutions : mock-swagger-core jar 0.0.2-beta

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

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