Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

[DEPRECATED] Common microservice stub to be used during development and local testing

License

Notifications You must be signed in to change notification settings

4finance/boot-microservice-stub

Repository files navigation

Boot microservice stub

Example of a stub of a microservice.

Introduction

When trying to run a microservice locally you would like to have all of its collaborators (microservice dependencies) stubbed. This project shows a stub that uses WireMock to create a stub of some endpoints.

Why WireMock?!?!

You use to stub dependencies and not create a stub of yourself!

We wanted to be pragmatic and it was really simple to set up all of the stubbing with WireMock. Additionally WireMock creates an admin access to the stubs via the /__admin/ url.

Conventions

Bearing all of this mind, regardless of the fact whether you use WireMock or not you have to provide a way to stop your stub via the URL

/__admin/shutdown

POST request.

When requested to stop microservices' stubs the 4finance's Micro Deps library calls that url to shutdown the server so remember about that url!

Build status

Build Status

About

[DEPRECATED] Common microservice stub to be used during development and local testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages