Re-layout source code to correct namespaces (handlers, commands, etc.)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using FinancialApi.Application;
|
||||
using FinancialApi.Application.Events;
|
||||
|
||||
namespace FinancialApi;
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Diagnostics;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FinancialApi;
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
@FinancialApi_HostAddress = https://localhost:7010
|
||||
|
||||
GET {{FinancialApi_HostAddress}}/weatherforecast/
|
||||
Accept: application/json
|
||||
|
||||
### Apply Fee to an Account
|
||||
|
||||
POST {{FinancialApi_HostAddress}}/accounts/apply-fee
|
||||
@@ -11,7 +8,7 @@ Content-Type: application/json
|
||||
|
||||
{
|
||||
"accountId": 1,
|
||||
"amount": 500.0
|
||||
"amount": 50.0
|
||||
}
|
||||
|
||||
### Transfer Between Accounts
|
||||
@@ -31,7 +28,7 @@ POST {{FinancialApi_HostAddress}}/journal/reverse
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"originalJournalId": "1443B0FC-F679-4445-A910-CC333F0925B7",
|
||||
"originalJournalId": "FD2BFD8E-7C85-4CAD-A12B-CCBCD7C12B4A",
|
||||
"reason": "Incorrect Account Fee"
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
using FinancialApi;
|
||||
using FinancialApi.Application;
|
||||
using FinancialApi.Application.Commands;
|
||||
using FinancialApi.Application.Events;
|
||||
using FinancialApi.Application.Handlers;
|
||||
using FinancialApi.Application.Queries;
|
||||
using FinancialApi.Infrastructure;
|
||||
using FinancialApi.ServiceDefaults;
|
||||
using JasperFx.Resources;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Wolverine;
|
||||
using Wolverine.EntityFrameworkCore;
|
||||
using Wolverine.Sqlite;
|
||||
@@ -85,6 +84,7 @@ app.MapGet("/events", (IEventTracker tracker) =>
|
||||
{
|
||||
return Results.Ok(store.CapturedEvents);
|
||||
}
|
||||
|
||||
return Results.NotFound();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user