Files
BeWoPlaner/Service/ServiceContracts/IApiStreamService.cs
Rene Evertz 78360c91c8 Refactor: Attribute
Weniger Unklarheit bzgl Abfragen bei jeweiligen Service Endpunkten
2025-06-17 15:46:04 +02:00

29 lines
935 B
C#

using BS.Shared.DataContracts.AdminService;
using BS.Shared.DataContracts.MikePHPContracts;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.ServiceModel.Web;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using BeWo.Service.Attributes;
namespace BeWo.Service.ServiceContracts
{
[ServiceContract]
public interface IApiStreamService
{
[OperationContract]
[WebGet(UriTemplate = "/GetPdf", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
[RequireApiAuthorization(IPAddressList = IPAddressList.AdminApi, IgnoreTenant = true)]
Stream GetPdf();
[OperationContract]
[WebInvoke(UriTemplate = "/GetPdf", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
[RequireApiAuthorization(IPAddressList = IPAddressList.AdminApi, IgnoreTenant = true)]
Stream GetPdf2();
}
}