2025-06-03 15:46:41 +02:00
|
|
|
|
using BS.Shared.DataContracts.AdminService;
|
2025-05-27 09:24:37 +02:00
|
|
|
|
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;
|
2025-06-03 15:46:41 +02:00
|
|
|
|
using BeWo.Service.Attributes;
|
2025-05-27 09:24:37 +02:00
|
|
|
|
|
|
|
|
|
|
namespace BeWo.Service.ServiceContracts
|
|
|
|
|
|
{
|
|
|
|
|
|
[ServiceContract]
|
|
|
|
|
|
public interface IApiStreamService
|
2025-05-27 13:04:52 +02:00
|
|
|
|
{
|
2025-06-04 10:58:06 +02:00
|
|
|
|
//[OperationContract]
|
|
|
|
|
|
//[WebGet(UriTemplate = "/DownloadReport", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
|
|
|
|
|
|
//[RequireApiKey(WebSecretConfigSetting.DownloadReportApiKey)]
|
|
|
|
|
|
//[RequireNoTenant]
|
|
|
|
|
|
//Stream DownloadReport();
|
|
|
|
|
|
|
2025-05-27 09:24:37 +02:00
|
|
|
|
[OperationContract]
|
2025-06-04 10:58:06 +02:00
|
|
|
|
[WebGet(UriTemplate = "/GetPdf", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
|
2025-05-27 13:27:31 +02:00
|
|
|
|
[RequireNoTenant]
|
2025-06-13 11:37:19 +02:00
|
|
|
|
[RequireIPAddress(IPAddressList.AdminApi)]
|
2025-06-04 10:58:06 +02:00
|
|
|
|
Stream GetPdf();
|
2025-06-05 14:03:55 +02:00
|
|
|
|
|
|
|
|
|
|
[OperationContract]
|
|
|
|
|
|
[WebInvoke(UriTemplate = "/GetPdf", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
|
|
|
|
|
|
[RequireNoTenant]
|
2025-06-13 11:37:19 +02:00
|
|
|
|
[RequireIPAddress(IPAddressList.AdminApi)]
|
2025-06-05 14:03:55 +02:00
|
|
|
|
Stream GetPdf2();
|
2025-05-27 09:24:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|