Skip to content

Commit cc46757

Browse files
committed
🗑️ Mark V2 API controllers as deprecated
1 parent 68df99e commit cc46757

File tree

6 files changed

+11
-0
lines changed

6 files changed

+11
-0
lines changed

TaleEngine/TaleEngine/Controllers/V2/ActivityController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace TaleEngine.API.Controllers.V2
88
{
9+
[Obsolete("This API version is deprecated. Please use V1 instead.")]
910
[ApiController]
1011
[Route("api/v2/[controller]")]
1112
public class ActivityController : Controller

TaleEngine/TaleEngine/Controllers/V2/ActivityStatusController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using Microsoft.AspNetCore.Mvc;
2+
using System;
23
using TaleEngine.CQRS.Contracts;
34

45
namespace TaleEngine.API.Controllers.V2
56
{
7+
[Obsolete("This API version is deprecated. Please use V1 instead.")]
68
[ApiController]
79
[Route("api/v2/[controller]")]
810
public class ActivityStatusController : Controller

TaleEngine/TaleEngine/Controllers/V2/ActivityTypeController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using Microsoft.AspNetCore.Mvc;
2+
using System;
23
using TaleEngine.CQRS.Contracts;
34

45
namespace TaleEngine.API.Controllers.V2
56
{
7+
[Obsolete("This API version is deprecated. Please use V1 instead.")]
68
[ApiController]
79
[Route("api/v2/[controller]")]
810
public class ActivityTypeController : Controller

TaleEngine/TaleEngine/Controllers/V2/EditionController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using Microsoft.AspNetCore.Mvc;
2+
using System;
23
using TaleEngine.CQRS.Contracts;
34

45
namespace TaleEngine.API.Controllers.V2
56
{
7+
[Obsolete("This API version is deprecated. Please use V1 instead.")]
68
[ApiController]
79
[Route("api/v2/[controller]")]
810
public class EditionController : Controller

TaleEngine/TaleEngine/Controllers/V2/EventController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using Microsoft.AspNetCore.Mvc;
2+
using System;
23
using TaleEngine.CQRS.Contracts;
34

45
namespace TaleEngine.API.Controllers.V2
56
{
7+
[Obsolete("This API version is deprecated. Please use V1 instead.")]
68
[ApiController]
79
[Route("api/v2/[controller]")]
810
public class EventController : Controller

TaleEngine/TaleEngine/Controllers/V2/TimeSlotController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using Microsoft.AspNetCore.Mvc;
2+
using System;
23
using TaleEngine.CQRS.Contracts;
34

45
namespace TaleEngine.API.Controllers.V2
56
{
7+
[Obsolete("This API version is deprecated. Please use V1 instead.")]
68
[ApiController]
79
[Route("api/v2/[controller]")]
810
public class TimeSlotController : Controller

0 commit comments

Comments
 (0)