You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Common.Types/Connected.Common.Types.Model/PostalCodes/IPostalCodeService.cs

36 lines
1.2 KiB

2 years ago
using System.Collections.Immutable;
using Connected.Annotations;
2 years ago
using Connected.Notifications;
using Connected.ServiceModel;
2 years ago
namespace Connected.Common.Types.PostalCodes;
2 years ago
[Service]
[ServiceUrl(Routes.PostalCodes)]
public interface IPostalCodeService : IServiceNotifications<int>
{
[ServiceMethod(ServiceMethodVerbs.Get)]
Task<ImmutableList<IPostalCode>?> Query();
[ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)]
Task<ImmutableList<IPostalCode>?> Query(PrimaryKeyListArgs<int> args);
[ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)]
Task<ImmutableList<IPostalCode>?> Query(PrimaryKeyArgs<int> args);
[ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)]
Task<ImmutableList<IPostalCode>?> Search(PostalCodeSearchArgs args);
[ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)]
Task<IPostalCode> Select(PrimaryKeyArgs<int> args);
[ServiceMethod(ServiceMethodVerbs.Post | ServiceMethodVerbs.Delete)]
Task Delete(PrimaryKeyArgs<int> args);
[ServiceMethod(ServiceMethodVerbs.Post | ServiceMethodVerbs.Put)]
Task<int> Insert(PostalCodeInsertArgs args);
[ServiceMethod(ServiceMethodVerbs.Post | ServiceMethodVerbs.Put | ServiceMethodVerbs.Patch)]
Task Update(PostalCodeInsertArgs args);
}