From ae27eb9dbeda015f28a060f9a37dfab032062cbd Mon Sep 17 00:00:00 2001 From: Ben Fletcher <48907264+ben-fletcher@users.noreply.github.com> Date: Mon, 6 Sep 2021 13:50:40 +0100 Subject: [PATCH 1/2] Fix insert account endpoint --- src/FinanceAPI/FinanceAPI/Controllers/AccountController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FinanceAPI/FinanceAPI/Controllers/AccountController.cs b/src/FinanceAPI/FinanceAPI/Controllers/AccountController.cs index 0799b2a..fff9407 100644 --- a/src/FinanceAPI/FinanceAPI/Controllers/AccountController.cs +++ b/src/FinanceAPI/FinanceAPI/Controllers/AccountController.cs @@ -31,6 +31,7 @@ public List GetAccounts() return _accountProcessor.GetAccounts(clientId); } + [HttpPost] [HttpPost("{accountId}")] public IActionResult InsertAccount([FromBody] JObject jsonAccount) { From e037da6332c3c79cc018d30bb5d6d6286a267f7a Mon Sep 17 00:00:00 2001 From: Ben Fletcher <48907264+ben-fletcher@users.noreply.github.com> Date: Mon, 6 Sep 2021 13:53:31 +0100 Subject: [PATCH 2/2] Update pipeline.yml --- .github/workflows/pipeline.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 16aa8ae..c07af86 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -1,5 +1,7 @@ name: Pipeline -on: [push] +on: + - push + - pull_request jobs: Build_Docker_Image: