aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulius <paulius.klezys@gmail.com>2017-04-28 18:39:39 +0200
committerPaulius <paulius.klezys@gmail.com>2017-04-28 18:39:39 +0200
commit0699d0a7b8b9a9b18d8fa498105e284ffe6c150b (patch)
treeec61c919e9fc4ed747284a1f8e5cb06561ebff1a
parentf27fab67c9cb49cf515f717145c41089687b710e (diff)
WebAPI created. Database updated
-rw-r--r--ApartmentManager/ApartmentManager.sln26
-rw-r--r--ApartmentManager/HousingWebAPI/App_Start/BundleConfig.cs28
-rw-r--r--ApartmentManager/HousingWebAPI/App_Start/FilterConfig.cs13
-rw-r--r--ApartmentManager/HousingWebAPI/App_Start/RouteConfig.cs23
-rw-r--r--ApartmentManager/HousingWebAPI/App_Start/WebApiConfig.cs24
-rw-r--r--ApartmentManager/HousingWebAPI/ApplicationInsights.config79
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ApiDescriptionExtensions.cs39
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/App_Start/HelpPageConfig.cs113
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Controllers/HelpController.cs63
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/HelpPage.css134
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/HelpPageAreaRegistration.cs26
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/HelpPageConfigurationExtensions.cs467
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs7
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs14
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs6
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs15
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs11
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs12
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs9
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/ModelDescription.cs16
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs451
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs18
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs36
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs11
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs21
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs6
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Models/HelpPageApiModel.cs108
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs444
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/SampleGeneration/HelpPageSampleKey.cs172
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/SampleGeneration/ImageSample.cs41
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/SampleGeneration/InvalidSample.cs37
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs456
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/SampleGeneration/SampleDirection.cs11
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/SampleGeneration/TextSample.cs37
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/Api.cshtml22
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml41
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml6
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml3
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml4
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml24
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml67
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml4
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml13
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml4
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/ModelDescriptionLink.cshtml26
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml48
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml30
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml3
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml6
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/Index.cshtml38
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Help/ResourceModel.cshtml19
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Shared/_Layout.cshtml12
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/Web.config41
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/Views/_ViewStart.cshtml4
-rw-r--r--ApartmentManager/HousingWebAPI/Areas/HelpPage/XmlDocumentationProvider.cs161
-rw-r--r--ApartmentManager/HousingWebAPI/Content/Site.css17
-rw-r--r--ApartmentManager/HousingWebAPI/Content/bootstrap.css6816
-rw-r--r--ApartmentManager/HousingWebAPI/Content/bootstrap.min.css20
-rw-r--r--ApartmentManager/HousingWebAPI/Controllers/ApartmentsController.cs133
-rw-r--r--ApartmentManager/HousingWebAPI/Controllers/DefectsController.cs133
-rw-r--r--ApartmentManager/HousingWebAPI/Controllers/HomeController.cs18
-rw-r--r--ApartmentManager/HousingWebAPI/Controllers/ResidentsController.cs133
-rw-r--r--ApartmentManager/HousingWebAPI/Controllers/UsersController.cs133
-rw-r--r--ApartmentManager/HousingWebAPI/Controllers/ValuesController.cs39
-rw-r--r--ApartmentManager/HousingWebAPI/Global.asax1
-rw-r--r--ApartmentManager/HousingWebAPI/Global.asax.cs23
-rw-r--r--ApartmentManager/HousingWebAPI/HousingWebAPI.csproj316
-rw-r--r--ApartmentManager/HousingWebAPI/Models/Apartments.cs39
-rw-r--r--ApartmentManager/HousingWebAPI/Models/ApartmentsDataContext.cs114
-rw-r--r--ApartmentManager/HousingWebAPI/Models/Defects.cs45
-rw-r--r--ApartmentManager/HousingWebAPI/Models/PastContractOwners.cs17
-rw-r--r--ApartmentManager/HousingWebAPI/Models/Residents.cs58
-rw-r--r--ApartmentManager/HousingWebAPI/Models/Users.cs38
-rw-r--r--ApartmentManager/HousingWebAPI/Project_Readme.html149
-rw-r--r--ApartmentManager/HousingWebAPI/Properties/AssemblyInfo.cs35
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/_references.jsbin0 -> 600 bytes
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/bootstrap.js2014
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/bootstrap.min.js21
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/jquery-1.10.2.intellisense.js2671
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/jquery-1.10.2.js9803
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/jquery-1.10.2.min.js23
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/jquery-1.10.2.min.map1
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/modernizr-2.6.2.js1416
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/respond.js340
-rw-r--r--ApartmentManager/HousingWebAPI/Scripts/respond.min.js20
-rw-r--r--ApartmentManager/HousingWebAPI/Views/Home/Index.cshtml24
-rw-r--r--ApartmentManager/HousingWebAPI/Views/Shared/Error.cshtml13
-rw-r--r--ApartmentManager/HousingWebAPI/Views/Shared/_Layout.cshtml41
-rw-r--r--ApartmentManager/HousingWebAPI/Views/Web.config43
-rw-r--r--ApartmentManager/HousingWebAPI/Views/_ViewStart.cshtml3
-rw-r--r--ApartmentManager/HousingWebAPI/Web.Debug.config30
-rw-r--r--ApartmentManager/HousingWebAPI/Web.Release.config31
-rw-r--r--ApartmentManager/HousingWebAPI/Web.config86
-rw-r--r--ApartmentManager/HousingWebAPI/favicon.icobin0 -> 32038 bytes
-rw-r--r--ApartmentManager/HousingWebAPI/fonts/glyphicons-halflings-regular.eotbin0 -> 14079 bytes
-rw-r--r--ApartmentManager/HousingWebAPI/fonts/glyphicons-halflings-regular.svg228
-rw-r--r--ApartmentManager/HousingWebAPI/fonts/glyphicons-halflings-regular.ttfbin0 -> 29512 bytes
-rw-r--r--ApartmentManager/HousingWebAPI/fonts/glyphicons-halflings-regular.woffbin0 -> 16448 bytes
-rw-r--r--ApartmentManager/HousingWebAPI/packages.config30
99 files changed, 28663 insertions, 2 deletions
diff --git a/ApartmentManager/ApartmentManager.sln b/ApartmentManager/ApartmentManager.sln
index aa41e57..97a72ca 100644
--- a/ApartmentManager/ApartmentManager.sln
+++ b/ApartmentManager/ApartmentManager.sln
@@ -1,20 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.26403.7
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApartmentManager", "ApartmentManager\ApartmentManager.csproj", "{95401ED6-D03C-417D-8897-81B5454D2426}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HousingWebAPI", "HousingWebAPI\HousingWebAPI.csproj", "{E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {95401ED6-D03C-417D-8897-81B5454D2426}.Debug|Any CPU.ActiveCfg = Debug|x86
{95401ED6-D03C-417D-8897-81B5454D2426}.Debug|ARM.ActiveCfg = Debug|ARM
{95401ED6-D03C-417D-8897-81B5454D2426}.Debug|ARM.Build.0 = Debug|ARM
{95401ED6-D03C-417D-8897-81B5454D2426}.Debug|ARM.Deploy.0 = Debug|ARM
@@ -24,6 +29,7 @@ Global
{95401ED6-D03C-417D-8897-81B5454D2426}.Debug|x86.ActiveCfg = Debug|x86
{95401ED6-D03C-417D-8897-81B5454D2426}.Debug|x86.Build.0 = Debug|x86
{95401ED6-D03C-417D-8897-81B5454D2426}.Debug|x86.Deploy.0 = Debug|x86
+ {95401ED6-D03C-417D-8897-81B5454D2426}.Release|Any CPU.ActiveCfg = Release|x86
{95401ED6-D03C-417D-8897-81B5454D2426}.Release|ARM.ActiveCfg = Release|ARM
{95401ED6-D03C-417D-8897-81B5454D2426}.Release|ARM.Build.0 = Release|ARM
{95401ED6-D03C-417D-8897-81B5454D2426}.Release|ARM.Deploy.0 = Release|ARM
@@ -33,6 +39,22 @@ Global
{95401ED6-D03C-417D-8897-81B5454D2426}.Release|x86.ActiveCfg = Release|x86
{95401ED6-D03C-417D-8897-81B5454D2426}.Release|x86.Build.0 = Release|x86
{95401ED6-D03C-417D-8897-81B5454D2426}.Release|x86.Deploy.0 = Release|x86
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Debug|ARM.ActiveCfg = Debug|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Debug|ARM.Build.0 = Debug|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Debug|x64.Build.0 = Debug|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Debug|x86.Build.0 = Debug|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Release|ARM.ActiveCfg = Release|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Release|ARM.Build.0 = Release|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Release|x64.ActiveCfg = Release|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Release|x64.Build.0 = Release|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Release|x86.ActiveCfg = Release|Any CPU
+ {E57E89D2-7DEA-433B-B7D3-CF27D6FDDE47}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/ApartmentManager/HousingWebAPI/App_Start/BundleConfig.cs b/ApartmentManager/HousingWebAPI/App_Start/BundleConfig.cs
new file mode 100644
index 0000000..12902e6
--- /dev/null
+++ b/ApartmentManager/HousingWebAPI/App_Start/BundleConfig.cs
@@ -0,0 +1,28 @@
+using System.Web;
+using System.Web.Optimization;
+
+namespace HousingWebAPI
+{
+ public class BundleConfig
+ {
+ // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
+ public static void RegisterBundles(BundleCollection bundles)
+ {
+ bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
+ "~/Scripts/jquery-{version}.js"));
+
+ // Use the development version of Modernizr to develop with and learn from. Then, when you're
+ // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
+ bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
+ "~/Scripts/modernizr-*"));
+
+ bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
+ "~/Scripts/bootstrap.js",
+ "~/Scripts/respond.js"));
+
+ bundles.Add(new StyleBundle("~/Content/css").Include(
+ "~/Content/bootstrap.css",
+ "~/Content/site.css"));
+