-Aggiunta dei servizi di connessione REST base, di SAP e di Salesforce

This commit is contained in:
Alessio Dal Santo
2025-06-16 17:42:55 +02:00
parent 7346db3b63
commit 53058e16a6
6 changed files with 858 additions and 1 deletions
@@ -2,6 +2,18 @@ using System.Collections.Generic;
namespace DataConnection.REST.Models
{
/// <summary>
/// Represents basic information about a discovered REST entity without detailed field information.
/// </summary>
public class RestEntitySummary
{
public string Name { get; set; } = string.Empty;
public string Label { get; set; } = string.Empty;
public bool IsCustom { get; set; } = false;
public string Description { get; set; } = string.Empty;
public string EntityType { get; set; } = string.Empty; // For distinguishing between different types of entities
}
/// <summary>
/// Represents information about a discovered REST entity (resource).
/// </summary>
@@ -20,6 +32,20 @@ namespace DataConnection.REST.Models
public string Name { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty; // Type as defined in the metadata (e.g., Edm.String, Edm.Int32)
public bool IsKey { get; set; } = false;
public bool IsRequired { get; set; } = false;
public bool IsReadOnly { get; set; } = false;
public int? MaxLength { get; set; }
// Add other relevant info like Nullable, MaxLength etc. if needed
}
/// <summary>
/// Represents the result of a REST entity creation operation.
/// </summary>
public class RestEntityCreationResult
{
public bool Success { get; set; }
public string? ErrorMessage { get; set; }
public Dictionary<string, object>? CreatedEntity { get; set; }
public string? CreatedEntityId { get; set; }
}
}