Skip to content

Commit 3ef4503

Browse files
committed
V14: Integrations (ActiveCampaign/Forms)
- Add base management api
1 parent c2085ca commit 3ef4503

File tree

4 files changed

+54
-11
lines changed

4 files changed

+54
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Umbraco.Forms.Integrations.Crm.ActiveCampaign.Api.Management.Controllers.Accounts
8+
{
9+
public class AccountControllerBase : ActiveCampaingControllerBase
10+
{
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using Microsoft.AspNetCore.Authorization;
2+
using Microsoft.AspNetCore.Mvc;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
using System.Threading.Tasks;
8+
using Umbraco.Cms.Api.Common.Attributes;
9+
using Umbraco.Cms.Web.Common.Authorization;
10+
11+
namespace Umbraco.Forms.Integrations.Crm.ActiveCampaign.Api.Management.Controllers
12+
{
13+
[ApiController]
14+
[Authorize(Policy = AuthorizationPolicies.BackOfficeAccess)]
15+
[MapToApi(Constants.ManagementApi.ApiName)]
16+
public class ActiveCampaingControllerBase : Controller
17+
{
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Umbraco.Forms.Integrations.Crm.ActiveCampaign.Api.Management.Controllers.Contacts
8+
{
9+
public class ContactControllerBase : ActiveCampaingControllerBase
10+
{
11+
}
12+
}

src/Umbraco.Forms.Integrations.Crm.ActiveCampaign/Umbraco.Forms.Integrations.Crm.ActiveCampaign.csproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net60;net70</TargetFrameworks>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<Nullable>enable</Nullable>
56
<ImplicitUsings>enable</ImplicitUsings>
6-
<WarningsAsErrors>Nullable</WarningsAsErrors>
7+
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
8+
<EnableDefaultContentItems>false</EnableDefaultContentItems>
79
</PropertyGroup>
810

911
<PropertyGroup>
@@ -21,14 +23,12 @@
2123
<PackageReadmeFile>readme.md</PackageReadmeFile>
2224
</PropertyGroup>
2325

24-
<ItemGroup Condition="'$(TargetFramework)' == 'net60'">
25-
<PackageReference Include="Umbraco.Cms.Web.Website" Version="[10.1.0,11)" />
26-
<PackageReference Include="Umbraco.Forms.Core" Version="[10.1.0,11)" />
27-
</ItemGroup>
28-
29-
<ItemGroup Condition="'$(TargetFramework)' == 'net70'">
30-
<PackageReference Include="Umbraco.Cms.Web.Website" Version="[11.0.0,13)" />
31-
<PackageReference Include="Umbraco.Forms.Core" Version="[11.0.0,13)" />
26+
<ItemGroup>
27+
<PackageReference Include="Umbraco.Cms.Api.Common" Version="[14.0.0, 15)" />
28+
<PackageReference Include="Umbraco.Cms.Api.Management" Version="[14.0.0, 15)" />
29+
<PackageReference Include="Umbraco.Cms.Core" Version="14.1.2" />
30+
<PackageReference Include="Umbraco.Cms.Web.Website" Version="14.1.2" />
31+
<PackageReference Include="Umbraco.Forms.Core" Version="14.1.1" />
3232
</ItemGroup>
3333

3434
<ItemGroup>

0 commit comments

Comments
 (0)