sipsorcery-mono /sipsorcery-core/SIPSorcery.Web.Services/Provisioning/IProvisioningServiceREST.cs

Language C# Lines 88
MD5 Hash 0f0de6f4689ef66ae1a40d1cefe8353b
Repository https://github.com/thecc4re/sipsorcery-mono.git View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using SIPSorcery.CRM;
using SIPSorcery.SIP.App;

namespace SIPSorcery.Web.Services {

    [ServiceContract(Namespace = "http://www.sipsorcery.com/provisioning/rest")]
    public interface IProvisioningServiceREST {

        [OperationContract]
        [WebGet(UriTemplate = "isalive")]
        bool IsAlive();

        [OperationContract]
        [WebGet(UriTemplate = "customer/login?username={username}&password={password}", ResponseFormat=WebMessageFormat.Json)]
        string Login(string username, string password);

        [OperationContract]
        [WebGet(UriTemplate = "customer/logout")]
        void Logout();

        [OperationContract]
        [WebGet(UriTemplate = "sipdomains?where={whereExpression}&offset={offset}&count={count}")]
        List<SIPDomain> GetSIPDomains(string whereExpression, int offset, int count);

        [OperationContract]
        [WebGet(UriTemplate = "sipaccounts/count?where={whereexpression}")]
        int GetSIPAccountsCount(string whereExpression);

        [OperationContract]
        [WebGet(UriTemplate = "sipaccounts?where={whereexpression}&offset={offset}&count={count}", ResponseFormat = WebMessageFormat.Json)]
        List<SIPAccount> GetSIPAccounts(string whereExpression, int offset, int count);

        [OperationContract]
        [WebGet(UriTemplate = "getsipregistrarbindingscount?whereexpression={whereexpression}")]
        int GetSIPRegistrarBindingsCount(string whereExpression);

        [OperationContract]
        [WebGet(UriTemplate = "getsipregistrarbindings?whereexpression={whereexpression}&offset={offset}&count={count}")]
        List<SIPRegistrarBinding> GetSIPRegistrarBindings(string whereExpression, int offset, int count);

        [OperationContract]
        [WebGet(UriTemplate = "getsipproviderscount?whereexpression={whereexpression}")]
        int GetSIPProvidersCount(string whereExpression);

        [OperationContract]
        [WebGet(UriTemplate = "getsipproviders?whereexpression={whereexpression}&offset={offset}&count={count}")]
        List<SIPProvider> GetSIPProviders(string whereExpression, int offset, int count);

        [OperationContract]
        [WebGet(UriTemplate = "getsipproviderbindingscount?whereexpression={whereexpression}")]
        int GetSIPProviderBindingsCount(string whereExpression);

        [OperationContract]
        [WebGet(UriTemplate = "getsipproviderbindings?whereexpression={whereexpression}&offset={offset}&count={count}")]
        List<SIPProviderBinding> GetSIPProviderBindings(string whereExpression, int offset, int count);

        [OperationContract]
        [WebGet(UriTemplate = "getdialplanscount?whereexpression={whereexpression}")]
        int GetDialPlansCount(string whereExpression);

        [OperationContract]
        [WebGet(UriTemplate = "getdialplans?whereexpression={whereexpression}&offset={offset}&count={count}")]
        List<SIPDialPlan> GetDialPlans(string whereExpression, int offset, int count);

        [OperationContract]
        [WebGet(UriTemplate = "getcallscount?whereexpression={whereexpression}")]
        int GetCallsCount(string whereExpression);

        [OperationContract]
        [WebGet(UriTemplate = "getcalls?whereexpression={whereexpression}&offset={offset}&count={count}")]
        List<SIPDialogueAsset> GetCalls(string whereExpression, int offset, int count);

        [OperationContract]
        [WebGet(UriTemplate = "getcdrscount?whereexpression={whereexpression}")]
        int GetCDRsCount(string whereExpression);

        [OperationContract]
        [WebGet(UriTemplate = "getcdrs?whereexpression={whereexpression}&offset={offset}&count={count}")]
        List<SIPCDRAsset> GetCDRs(string whereExpression, int offset, int count);
    }
}
Back to Top