Skip to content

Commit 4a0655a

Browse files
committed
RESTful API listener implemented using the "api.restful" handler
>> Diff and merge the Web.*.config files accordingly.
1 parent b6006ea commit 4a0655a

24 files changed

+1143
-444
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/test/API.Test/obj
77
/test/API.Test/Logs
88
/test/API.Test/API.Test.csproj.user
9+
/src/API.Library/API.Library.csproj.user

rls/API.Library.dll

6.5 KB
Binary file not shown.

rls/API.Library.dll.config

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,26 @@
1616
<AppSettings>
1717
<!--
1818
**********************************************************************
19+
API
20+
**********************************************************************
21+
-->
22+
23+
<!-- API - Maintenance flag [TRUE, FALSE] -->
24+
<add key="API_MAINTENANCE" value="FALSE" />
25+
<!-- API - Windows Authentication [ANONYMOUS, WINDOWS, ANY] -->
26+
<add key="API_AUTHENTICATION_TYPE" value="ANY" />
27+
<!-- API - Stateless [TRUE, FALSE] -->
28+
<add key="API_STATELESS" value="FALSE" />
29+
<!-- API - Success response (case sensitive) -->
30+
<add key="API_SUCCESS" value="success" />
31+
32+
<!--
33+
**********************************************************************
1934
API - JSONRPC
2035
**********************************************************************
2136
-->
2237

23-
<!-- JSONRPC - Maintenance flag [TRUE, FALSE] -->
24-
<add key="API_JSONRPC_MAINTENANCE" value="FALSE" />
25-
<!-- JSONRPC - Success response (case sensitive) -->
26-
<add key="API_JSONRPC_SUCCESS" value="success" />
27-
<!-- JSONRPC - Windows Authentication [ANONYMOUS, WINDOWS, ANY] -->
28-
<add key="API_JSONRPC_AUTHENTICATION_TYPE" value="ANY" />
29-
<!-- JSONRPC - Stateless [TRUE, FALSE] -->
30-
<add key="API_JSONRPC_STATELESS" value="FALSE" />
31-
<!-- JSONRPC - Mask parameters (comas separated, case insensitive) -->
38+
<!-- API - JSONRPC - Mask parameters (comas separated, case insensitive) -->
3239
<add key="API_JSONRPC_MASK_PARAMETERS" value="" />
3340

3441
<!--

rls/API.Library.pdb

14 KB
Binary file not shown.

src/API.Library/API.Library.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
<HintPath>..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
7777
<Private>True</Private>
7878
</Reference>
79+
<Reference Include="PresentationFramework" />
7980
<Reference Include="System" />
8081
<Reference Include="System.ComponentModel.Annotations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
8182
<HintPath>..\packages\System.ComponentModel.Annotations.4.5.0\lib\net461\System.ComponentModel.Annotations.dll</HintPath>
@@ -105,11 +106,14 @@
105106
</ItemGroup>
106107
<ItemGroup>
107108
<Compile Include="Entities\ActiveDirectory.cs" />
109+
<Compile Include="Entities\API.Common.cs" />
110+
<Compile Include="Entities\API.Map.cs" />
111+
<Compile Include="Entities\API.JSONRPC.cs" />
112+
<Compile Include="Entities\API.RESTful.cs" />
108113
<Compile Include="Entities\Log.cs" />
109114
<Compile Include="Entities\MemCacheD.cs" />
110115
<Compile Include="Entities\eMail\eMail.cs" />
111116
<Compile Include="Entities\ADO.cs" />
112-
<Compile Include="Entities\JSONRPC.cs" />
113117
<Compile Include="Entities\ReCAPTCHA.cs" />
114118
<Compile Include="Entities\Utility.cs" />
115119
<Compile Include="Properties\AssemblyInfo.cs" />

src/API.Library/App.config

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,26 @@
1616
<AppSettings>
1717
<!--
1818
**********************************************************************
19+
API
20+
**********************************************************************
21+
-->
22+
23+
<!-- API - Maintenance flag [TRUE, FALSE] -->
24+
<add key="API_MAINTENANCE" value="FALSE" />
25+
<!-- API - Windows Authentication [ANONYMOUS, WINDOWS, ANY] -->
26+
<add key="API_AUTHENTICATION_TYPE" value="ANY" />
27+
<!-- API - Stateless [TRUE, FALSE] -->
28+
<add key="API_STATELESS" value="FALSE" />
29+
<!-- API - Success response (case sensitive) -->
30+
<add key="API_SUCCESS" value="success" />
31+
32+
<!--
33+
**********************************************************************
1934
API - JSONRPC
2035
**********************************************************************
2136
-->
2237

23-
<!-- JSONRPC - Maintenance flag [TRUE, FALSE] -->
24-
<add key="API_JSONRPC_MAINTENANCE" value="FALSE" />
25-
<!-- JSONRPC - Success response (case sensitive) -->
26-
<add key="API_JSONRPC_SUCCESS" value="success" />
27-
<!-- JSONRPC - Windows Authentication [ANONYMOUS, WINDOWS, ANY] -->
28-
<add key="API_JSONRPC_AUTHENTICATION_TYPE" value="ANY" />
29-
<!-- JSONRPC - Stateless [TRUE, FALSE] -->
30-
<add key="API_JSONRPC_STATELESS" value="FALSE" />
31-
<!-- JSONRPC - Mask parameters (comas separated, case insensitive) -->
38+
<!-- API - JSONRPC - Mask parameters (comas separated, case insensitive) -->
3239
<add key="API_JSONRPC_MASK_PARAMETERS" value="" />
3340

3441
<!--

0 commit comments

Comments
 (0)