If you don't have it installed any version of Visual Studio 2022, download & install Visual Studio Community 2022.
If you don't have it installed yet, download and install Docker on your operating system.
If you don't have it installed yet, download and install .NET 7.0 SDK
To Build an image of Payments.Authorizer, run the follow command in Package Manager Console in Visual Studio:
docker build -t payments.authorizer .
(don't forget the space + final dot in this command)
To run the container run the follow command in in Package Manager Console in Visual Studio:
docker run -p 5098:5098 payments.authorizer
- url: [GET]
/healtly
- Response:
Health
- Response:
- url: [POST]
/payment-approval
- body:
{ "amount": 2500.00 }
- Response:
{ "amount": 2500.00, "approved": true }