using System.Collections.Immutable; using Connected.Annotations; using Connected.ServiceModel; namespace Connected.Net.Endpoints; /// /// This is for entity. /// /// /// The environment consists of one or more instances, each described as an . /// If more that one exists, it means the environment is scaled out. /// There should be always at least one defined. /// [Service] public interface IEndpointService { /// /// This method returns all registered endpoints in the current environment /// /// List of entities. [ServiceMethod(ServiceMethodVerbs.Get)] Task> Query(); /// /// This method returns for the specified id. /// /// The id of the endpoint for which the entity will be returned. /// for the specified id if exists, null otherwise. [ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)] Task Select(PrimaryKeyArgs e); }