Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reworked the entire API layer to use DTO classes and use the factory pattern #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bartdebever
Copy link
Member

No description provided.

@bartdebever bartdebever requested a review from StijnOostdam May 27, 2021 19:42
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 3 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication


public string AuthenticationToken { get; set; }

public string BaseUrl => $"http://{Ip}:{Port}/api/v1/{AuthenticationToken}/";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the best location or this base url? Maybe in the client class?

@@ -0,0 +1,24 @@
namespace Winleafs.Api.DTOs.Shared
{
public class WriteObjectDto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use full names for variables and parameters

@@ -0,0 +1,24 @@
namespace Winleafs.Api.DTOs.Shared
{
public class WriteObjectDto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be more specific or is it used for all writes? Then maybe make this a base class and make one or more derived classes, which then has, for example, the ExtControlVersion property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants