-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add CachedApiResponse and modify GET /Tags endpoint in SDK
- Loading branch information
1 parent
58e2606
commit fdc6066
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
BuildingBlocks/src/BuildingBlocks.SDK/Endpoints/Common/Types/CacheControl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Backbone.BuildingBlocks.SDK.Endpoints.Common.Types; | ||
|
||
public class CacheControl | ||
{ | ||
public required string ETag { get; set; } | ||
} |
8 changes: 8 additions & 0 deletions
8
BuildingBlocks/src/BuildingBlocks.SDK/Endpoints/Common/Types/CachedApiResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Backbone.BuildingBlocks.SDK.Endpoints.Common.Types; | ||
|
||
public class CachedApiResponse<TResult> : ApiResponse<TResult> | ||
{ | ||
public bool NotModified => Result == null; | ||
|
||
public string ETag { get; set; } = string.Empty; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters