Skip to content

TrishaChetani/specmatic-order-api-csharp

 
 

Repository files navigation

Specmatic Sample Client Application

HTML client talks to client API which talks to backend api

BFF = Backend For Frontend, the API invoked by the HTTP calls in the client HTML page (Website UI).

This project contains the product API, which is used by a small ecommerce client application.

Here is the contract governing the interaction of the client with the product API.

The architecture diagram was created using the amazing free online SVG editor at Vectr.

Tech

  1. .NET core 10
  2. Specmatic
  3. Docker Desktop

Prerequisites

  1. Dotnet SDK
  2. Docker Desktop

How to run the application?

  1. CD into the project directory : cd specmatic-order-api-csharp
  2. Build the project using : dotnet build
  3. Run the application using : dotnet run

How to test the application?

  1. Using dotnet test

  2. Run the test inside container

  -v "$(pwd)/specmatic-order-api-csharp.test/specmatic.yaml:/usr/src/app/specmatic.yaml" \
  -v "$(pwd)/build/reports/specmatic:/usr/src/app/build/reports/specmatic" \
  specmatic/specmatic test \
  --host=host.docker.internal \
  --port=8090

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%