Trendyol/stove

Create a Spring example application for show-case

osoykan opened this issue · 1 comments

  1. Has an endpoint POST localhost:8001/api/product/create with body ProductCreateCommand(id, name, supplierId: Int) (showcase for: sending a real HTTP request with DefaultHttpSystem)
  2. Has a consumer ProductConsumer that accepts a ProductMessage(id, name, supplierId: Int) (showcase for: publishing a message and seeing that it consumes)
  3. Has an external API call localhost:9090/suppliers/{id}/allowed that returns SupplierPermission(id, isAllowed: Boolean) while creating (showcase for: mocking)
  4. If everything is fine, then save it to the database (both API and Consumer) (showcase for: database system)

Implemented with #17