ProductPromotion
Logo

Kotlin

made by https://0x3d.site

GitHub - laviua/komock: KoMock - Simple HTTP/Consul/SpringConfig http server framework written in Kotlin. Wiremock use cases
KoMock - Simple HTTP/Consul/SpringConfig http server framework written in Kotlin. Wiremock use cases - laviua/komock
Visit Site

GitHub - laviua/komock: KoMock - Simple HTTP/Consul/SpringConfig http server framework written in Kotlin. Wiremock use cases

GitHub - laviua/komock: KoMock - Simple HTTP/Consul/SpringConfig http server framework written in Kotlin. Wiremock use cases

Komock Build Status GitHub license Maven Central Code Climate

Here is HTTP/Consul/SpringConfig mocker framework written in Kotlin.

This tiny framework is very useful if you need to create REST based client for API service.
We use this framework for develop microservices or API integration with third party systems.

Main features:

  • Configurable response for any kind of HTTP request/response with wildcards, cookies and custom headers.
  • SSL support
  • Virtual Host support
  • Consul discovery service support.
  • Ability to work like a simple Spring Configuration Server
  • Header based security
  • Variables in the response by request parameters
  • Callback support

Download

Binaries are available at https://github.com/laviua/komock/releases/latest

Changelog

Maven Central repository

<dependency>
    <groupId>ua.com.lavi</groupId>
    <artifactId>komock-core</artifactId>
    <version>RELEASE</version>
</dependency>

How to use

Run standalone application:

  1. Extract release version from https://github.com/laviua/komock/releases/latest :

     komock-app-x.x.x.zip
    
  2. Run

     bin\komock-app /path/your_config.yaml
    

Examples

Simple http server https://github.com/laviua/komock/wiki/Simple-http-server-(Java)

Oauth2 server https://github.com/laviua/komock/wiki/Oauth2-server

Consul service registration https://github.com/laviua/komock/wiki/Consul

Spring config server https://github.com/laviua/komock/wiki/Spring-config-server

Unit testing https://github.com/laviua/komock/wiki/Unit-Testing-with-request-capturing-(Java)

Full config Callbacks, Mask patterns, cookies, virtualhosts, etc Look at self-describable configuration file Link:

HTTPS / SSL:

You can use your personal keystore. Just create it by the following command and set filename with password in the configuration file (secure section):

keytool -genkey -alias replserver -keyalg RSA -keystore mock_keystore.jks -dname "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US" -storepass mockpassword -keypass mockpassword

ssl:
  enabled: true
  keyStoreLocation: mock_keystore.jks
  keyStorePassword: mockpassword

License

Licensed under Apache 2 License

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory