endpoint implementation ...

This commit is contained in:
2026-11-19 18:08:53 +03:30
parent be47468e35
commit bc66d86ed2
7 changed files with 408 additions and 86 deletions
+72 -2
View File
@@ -57,7 +57,7 @@ namespace xApi.Models
[JsonPropertyName("properties")]
public Dictionary<string, AzurePropertyValueDto>? Properties { get; set; }
}
}
public class AzureLocationServiceDto
{
@@ -72,5 +72,75 @@ namespace xApi.Models
[JsonPropertyName("defaultAccessMappingMoniker")]
public string? DefaultAccessMappingMoniker { get; set; }
}
}
public class AzureProjectDto
{
[JsonPropertyName("id")]
public Guid Id { get; set; }
[JsonPropertyName("name")]
public string? Name { get; set; }
[JsonPropertyName("description")]
public string? Description { get; set; }
[JsonPropertyName("url")]
public string? Url { get; set; }
[JsonPropertyName("state")]
public string? State { get; set; }
[JsonPropertyName("revision")]
public int? Revision { get; set; }
[JsonPropertyName("visibility")]
public string? Visibility { get; set; }
[JsonPropertyName("lastUpdateTime")]
public DateTime LastUpdateTime { get; set; }
}
public class AzureRepositoryDto
{
[JsonPropertyName("id")]
public Guid Id { get; set; }
[JsonPropertyName("size")]
public long Size { get; set; }
[JsonPropertyName("name")]
public string? Name { get; set; }
[JsonPropertyName("url")]
public string? Url { get; set; }
[JsonPropertyName("webUrl")]
public string? WebUrl { get; set; }
[JsonPropertyName("sshUrl")]
public string? SshUrl { get; set; }
[JsonPropertyName("isDisabled")]
public bool IsDisabled { get; set; }
[JsonPropertyName("remoteUrl")]
public string? RemoteUrl { get; set; }
[JsonPropertyName("defaultBranch")]
public string? DefaultBranch { get; set; }
[JsonPropertyName("project")]
public AzureProjectDto? Project { get; set; }
}
public class AzureListDto<T>
where T : class
{
[JsonPropertyName("count")]
public int Count { get; set; }
[JsonPropertyName("value")]
public List<T> Value { get; set; } = [];
}
}