├── .gitattributes
├── .gitignore
├── WebApiSwagger.sln
├── WebApiSwagger
├── App_Data
│ └── WebApiSwagger.XML
├── App_Start
│ ├── SwaggerConfig.cs
│ └── WebApiConfig.cs
├── Controllers
│ └── StudentsController.cs
├── Models
│ └── Student.cs
├── Properties
│ ├── AssemblyInfo.cs
│ └── PublishProfiles
│ │ ├── WebApiSwagger.pubxml
│ │ └── local.pubxml
├── Startup.cs
├── Web.Debug.config
├── Web.Release.config
├── Web.config
├── WebApiSwagger.csproj
└── packages.config
└── packages
├── Microsoft.AspNet.WebApi.5.2.0
└── Microsoft.AspNet.WebApi.5.2.0.nupkg
├── Microsoft.AspNet.WebApi.Client.5.2.0
├── Microsoft.AspNet.WebApi.Client.5.2.0.nupkg
└── lib
│ ├── net45
│ ├── System.Net.Http.Formatting.dll
│ └── System.Net.Http.Formatting.xml
│ └── portable-wp8+netcore45+net45+wp81+wpa81
│ ├── System.Net.Http.Formatting.dll
│ └── System.Net.Http.Formatting.xml
├── Microsoft.AspNet.WebApi.Core.5.2.0
├── Content
│ └── web.config.transform
├── Microsoft.AspNet.WebApi.Core.5.2.0.nupkg
└── lib
│ └── net45
│ ├── System.Web.Http.dll
│ └── System.Web.Http.xml
├── Microsoft.AspNet.WebApi.Owin.5.2.0
├── Microsoft.AspNet.WebApi.Owin.5.2.0.nupkg
└── lib
│ └── net45
│ ├── System.Web.Http.Owin.dll
│ └── System.Web.Http.Owin.xml
├── Microsoft.AspNet.WebApi.WebHost.5.2.0
├── Microsoft.AspNet.WebApi.WebHost.5.2.0.nupkg
└── lib
│ └── net45
│ ├── System.Web.Http.WebHost.dll
│ └── System.Web.Http.WebHost.xml
├── Microsoft.Owin.3.0.0
├── Microsoft.Owin.3.0.0.nupkg
└── lib
│ └── net45
│ ├── Microsoft.Owin.XML
│ └── Microsoft.Owin.dll
├── Microsoft.Owin.Host.SystemWeb.3.0.0
├── Microsoft.Owin.Host.SystemWeb.3.0.0.nupkg
└── lib
│ └── net45
│ ├── Microsoft.Owin.Host.SystemWeb.dll
│ └── Microsoft.Owin.Host.SystemWeb.xml
├── Microsoft.Web.Infrastructure.1.0.0.0
├── Microsoft.Web.Infrastructure.1.0.0.0.nupkg
└── lib
│ └── net40
│ └── Microsoft.Web.Infrastructure.dll
├── Newtonsoft.Json.4.5.11
├── Newtonsoft.Json.4.5.11.nupkg
└── lib
│ ├── net20
│ ├── Newtonsoft.Json.dll
│ └── Newtonsoft.Json.xml
│ ├── net35
│ ├── Newtonsoft.Json.dll
│ └── Newtonsoft.Json.xml
│ ├── net40
│ ├── Newtonsoft.Json.dll
│ └── Newtonsoft.Json.xml
│ ├── portable-net40+sl4+wp7+win8
│ ├── Newtonsoft.Json.dll
│ └── Newtonsoft.Json.xml
│ ├── sl3-wp
│ ├── Newtonsoft.Json.dll
│ └── Newtonsoft.Json.xml
│ ├── sl4-windowsphone71
│ ├── Newtonsoft.Json.dll
│ └── Newtonsoft.Json.xml
│ ├── sl4
│ ├── Newtonsoft.Json.dll
│ └── Newtonsoft.Json.xml
│ └── winrt45
│ ├── Newtonsoft.Json.dll
│ └── Newtonsoft.Json.xml
├── Owin.1.0
├── Owin.1.0.nupkg
└── lib
│ └── net40
│ └── Owin.dll
├── Swashbuckle.4.0
├── Content
│ ├── App_Start
│ │ └── SwaggerConfig.cs.pp
│ └── Web.config.transform
└── Swashbuckle.4.0.nupkg
├── Swashbuckle.Core.4.0
├── Swashbuckle.Core.4.0.nupkg
└── lib
│ └── net40
│ └── Swashbuckle.Core.dll
├── WebActivatorEx.2.0.5
├── WebActivatorEx.2.0.5.nupkg
└── lib
│ └── net40
│ └── WebActivatorEx.dll
└── repositories.config
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.sln.docstates
8 |
9 | # Build results
10 |
11 | [Dd]ebug/
12 | [Rr]elease/
13 | x64/
14 | build/
15 | [Bb]in/
16 | [Oo]bj/
17 |
18 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
19 | !packages/*/build/
20 |
21 | # MSTest test Results
22 | [Tt]est[Rr]esult*/
23 | [Bb]uild[Ll]og.*
24 |
25 | *_i.c
26 | *_p.c
27 | *.ilk
28 | *.meta
29 | *.obj
30 | *.pch
31 | *.pdb
32 | *.pgc
33 | *.pgd
34 | *.rsp
35 | *.sbr
36 | *.tlb
37 | *.tli
38 | *.tlh
39 | *.tmp
40 | *.tmp_proj
41 | *.log
42 | *.vspscc
43 | *.vssscc
44 | .builds
45 | *.pidb
46 | *.log
47 | *.scc
48 |
49 | # Visual C++ cache files
50 | ipch/
51 | *.aps
52 | *.ncb
53 | *.opensdf
54 | *.sdf
55 | *.cachefile
56 |
57 | # Visual Studio profiler
58 | *.psess
59 | *.vsp
60 | *.vspx
61 |
62 | # Guidance Automation Toolkit
63 | *.gpState
64 |
65 | # ReSharper is a .NET coding add-in
66 | _ReSharper*/
67 | *.[Rr]e[Ss]harper
68 |
69 | # TeamCity is a build add-in
70 | _TeamCity*
71 |
72 | # DotCover is a Code Coverage Tool
73 | *.dotCover
74 |
75 | # NCrunch
76 | *.ncrunch*
77 | .*crunch*.local.xml
78 |
79 | # Installshield output folder
80 | [Ee]xpress/
81 |
82 | # DocProject is a documentation generator add-in
83 | DocProject/buildhelp/
84 | DocProject/Help/*.HxT
85 | DocProject/Help/*.HxC
86 | DocProject/Help/*.hhc
87 | DocProject/Help/*.hhk
88 | DocProject/Help/*.hhp
89 | DocProject/Help/Html2
90 | DocProject/Help/html
91 |
92 | # Click-Once directory
93 | publish/
94 |
95 | # Publish Web Output
96 | *.Publish.xml
97 |
98 | # NuGet Packages Directory
99 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line
100 | #packages/
101 |
102 | # Windows Azure Build Output
103 | csx
104 | *.build.csdef
105 |
106 | # Windows Store app package directory
107 | AppPackages/
108 |
109 | # Others
110 | sql/
111 | *.Cache
112 | ClientBin/
113 | [Ss]tyle[Cc]op.*
114 | ~$*
115 | *~
116 | *.dbmdl
117 | *.[Pp]ublish.xml
118 | *.pfx
119 | *.publishsettings
120 |
121 | # RIA/Silverlight projects
122 | Generated_Code/
123 |
124 | # Backup & report files from converting an old project file to a newer
125 | # Visual Studio version. Backup files are not needed, because we have git ;-)
126 | _UpgradeReport_Files/
127 | Backup*/
128 | UpgradeLog*.XML
129 | UpgradeLog*.htm
130 |
131 | # SQL Server files
132 | App_Data/*.mdf
133 | App_Data/*.ldf
134 |
135 |
136 | #LightSwitch generated files
137 | GeneratedArtifacts/
138 | _Pvt_Extensions/
139 | ModelManifest.xml
140 |
141 | # =========================
142 | # Windows detritus
143 | # =========================
144 |
145 | # Windows image file caches
146 | Thumbs.db
147 | ehthumbs.db
148 |
149 | # Folder config file
150 | Desktop.ini
151 |
152 | # Recycle Bin used on file shares
153 | $RECYCLE.BIN/
154 |
155 | # Mac desktop service store files
156 | .DS_Store
157 |
--------------------------------------------------------------------------------
/WebApiSwagger.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.30501.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApiSwagger", "WebApiSwagger\WebApiSwagger.csproj", "{AC28FE5F-B718-4908-9A88-92729375ABA2}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AC28FE5F-B718-4908-9A88-92729375ABA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AC28FE5F-B718-4908-9A88-92729375ABA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AC28FE5F-B718-4908-9A88-92729375ABA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AC28FE5F-B718-4908-9A88-92729375ABA2}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/WebApiSwagger/App_Data/WebApiSwagger.XML:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WebApiSwagger
5 |
6 |
7 |
8 |
9 | Get all students
10 |
11 | Get an array of all students
12 | Internal Server Error
13 |
14 |
15 |
16 | Get student
17 |
18 | Unique username
19 | Get signle student by providing username
20 | Not found
21 | Internal Server Error
22 |
23 |
24 |
25 | Add new student
26 |
27 | Student Model
28 | Insert new student
29 | Bad request
30 | Internal Server Error
31 |
32 |
33 |
34 | Delete student
35 |
36 | Unique username
37 | Delete existing student
38 | Not found
39 | Internal Server Error
40 |
41 |
42 |
43 | Student Model
44 |
45 |
46 |
47 |
48 | Username
49 |
50 |
51 |
52 |
53 | First Name
54 |
55 |
56 |
57 |
58 | Last Name (Surname)
59 |
60 |
61 |
62 |
63 | Email
64 |
65 |
66 |
67 |
68 | Birth Date
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/WebApiSwagger/App_Start/SwaggerConfig.cs:
--------------------------------------------------------------------------------
1 | using System.Web.Http;
2 | using WebApiSwagger;
3 | using WebActivatorEx;
4 | using Swashbuckle.Application;
5 |
6 | [assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")]
7 |
8 | namespace WebApiSwagger
9 | {
10 | public class SwaggerConfig
11 | {
12 | public static void Register()
13 | {
14 | Swashbuckle.Bootstrapper.Init(GlobalConfiguration.Configuration);
15 |
16 | // NOTE: If you want to customize the generated swagger or UI, use SwaggerSpecConfig and/or SwaggerUiConfig here ...
17 |
18 | SwaggerSpecConfig.Customize(c =>
19 | {
20 | c.IncludeXmlComments(GetXmlCommentsPath());
21 | });
22 | }
23 |
24 | protected static string GetXmlCommentsPath()
25 | {
26 | return System.String.Format(@"{0}\bin\WebApiSwagger.XML", System.AppDomain.CurrentDomain.BaseDirectory);
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/WebApiSwagger/App_Start/WebApiConfig.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json.Serialization;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Net.Http.Formatting;
6 | using System.Web;
7 | using System.Web.Http;
8 |
9 | namespace WebApiSwagger.App_Start
10 | {
11 | public class WebApiConfig
12 | {
13 | public static void Register(HttpConfiguration config)
14 | {
15 |
16 | config.MapHttpAttributeRoutes();
17 |
18 | var jsonFormatter = config.Formatters.OfType().First();
19 | jsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
20 |
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/WebApiSwagger/Controllers/StudentsController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Net;
5 | using System.Net.Http;
6 | using System.Web.Http;
7 | using System.Web.Http.Description;
8 | using WebApiSwagger.Models;
9 |
10 | namespace WebApiSwagger.Controllers
11 | {
12 | [RoutePrefix("api/Students")]
13 | public class StudentsController : ApiController
14 | {
15 |
16 | private static List StudentsList;
17 |
18 | public StudentsController()
19 | {
20 | if (StudentsList == null)
21 | {
22 | StudentsList = StudentsData.CreateStudents();
23 | }
24 |
25 | }
26 |
27 | ///
28 | /// Get all students
29 | ///
30 | /// Get an array of all students
31 | /// Internal Server Error
32 | [Route("")]
33 | [ResponseType(typeof(List))]
34 | public IHttpActionResult Get()
35 | {
36 | return Ok(StudentsList);
37 | }
38 |
39 | ///
40 | /// Get student
41 | ///
42 | /// Unique username
43 | /// Get signle student by providing username
44 | /// Not found
45 | /// Internal Server Error
46 | [Route("{userName:alpha}", Name = "GetStudentByUserName")]
47 | [ResponseType(typeof(Student))]
48 | public IHttpActionResult Get(string userName)
49 | {
50 |
51 | var student = StudentsList.Where(s => s.UserName == userName).FirstOrDefault();
52 |
53 | if (student == null)
54 | {
55 | return NotFound();
56 | }
57 |
58 | return Ok(student);
59 | }
60 |
61 | ///
62 | /// Add new student
63 | ///
64 | /// Student Model
65 | /// Insert new student
66 | /// Bad request
67 | /// Internal Server Error
68 | [Route("")]
69 | [ResponseType(typeof(Student))]
70 | public IHttpActionResult Post(Student student)
71 | {
72 | if (!ModelState.IsValid)
73 | {
74 | return BadRequest(ModelState);
75 | }
76 |
77 | if (StudentsList.Any(s => s.UserName == student.UserName))
78 | {
79 | return BadRequest("Username already exists");
80 | }
81 |
82 | StudentsList.Add(student);
83 |
84 | string uri = Url.Link("GetStudentByUserName", new { userName = student.UserName });
85 |
86 | return Created(uri, student);
87 | }
88 |
89 | ///
90 | /// Delete student
91 | ///
92 | /// Unique username
93 | /// Delete existing student
94 | /// Not found
95 | /// Internal Server Error
96 | [Route("{userName:alpha}")]
97 | public HttpResponseMessage Delete(string userName)
98 | {
99 |
100 | var student = StudentsList.Where(s => s.UserName == userName).FirstOrDefault();
101 |
102 | if (student == null)
103 | {
104 | return Request.CreateResponse(HttpStatusCode.NotFound);
105 | }
106 |
107 | StudentsList.Remove(student);
108 |
109 | return Request.CreateResponse(HttpStatusCode.NoContent);
110 |
111 | }
112 |
113 | }
114 |
115 | public class StudentsData
116 | {
117 | public static List CreateStudents()
118 | {
119 |
120 | List studentsList = new List();
121 |
122 | for (int i = 0; i < studentNames.Length; i++)
123 | {
124 | var nameGenderMail = SplitValue(studentNames[i]);
125 | var student = new Student()
126 | {
127 | Email = String.Format("{0}.{1}@{2}", nameGenderMail[0], nameGenderMail[1], nameGenderMail[3]),
128 | UserName = String.Format("{0}{1}", nameGenderMail[0], nameGenderMail[1]),
129 | FirstName = nameGenderMail[0],
130 | LastName = nameGenderMail[1],
131 | DateOfBirth = DateTime.UtcNow.AddDays(-new Random().Next(7000, 8000)),
132 | };
133 |
134 | studentsList.Add(student);
135 | }
136 |
137 | return studentsList;
138 | }
139 |
140 | static string[] studentNames =
141 | {
142 | "Taiseer,Joudeh,Male,hotmail.com",
143 | "Hasan,Ahmad,Male,mymail.com",
144 | "Moatasem,Ahmad,Male,outlook.com",
145 | "Salma,Tamer,Female,outlook.com",
146 | "Ahmad,Radi,Male,gmail.com",
147 | "Bill,Gates,Male,yahoo.com",
148 | "Shareef,Khaled,Male,gmail.com",
149 | "Aram,Naser,Male,gmail.com",
150 | "Layla,Ibrahim,Female,mymail.com",
151 | "Rema,Oday,Female,hotmail.com",
152 | "Fikri,Husein,Male,gmail.com",
153 | "Zakari,Husein,Male,outlook.com",
154 | "Taher,Waleed,Male,mymail.com",
155 | "Tamer,Wesam,Male,yahoo.com",
156 | "Khaled,Hasaan,Male,gmail.com",
157 | "Asaad,Ibrahim,Male,hotmail.com",
158 | "Tareq,Nassar,Male,outlook.com",
159 | "Diana,Lutfi,Female,outlook.com",
160 | "Tamara,Malek,Female,gmail.com",
161 | "Arwa,Kamal,Female,yahoo.com",
162 | "Jana,Ahmad,Female,yahoo.com",
163 | "Nisreen,Tamer,Female,gmail.com",
164 | "Noura,Ahmad,Female,outlook.com"
165 | };
166 |
167 | private static string[] SplitValue(string val)
168 | {
169 | return val.Split(',');
170 | }
171 | }
172 | }
173 |
--------------------------------------------------------------------------------
/WebApiSwagger/Models/Student.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Linq;
5 | using System.Web;
6 |
7 | namespace WebApiSwagger.Models
8 | {
9 | ///
10 | /// Student Model
11 | ///
12 | public class Student
13 | {
14 | ///
15 | /// Username
16 | ///
17 | [Required]
18 | public string UserName { get; set; }
19 | ///
20 | /// First Name
21 | ///
22 | [Required]
23 | public string FirstName { get; set; }
24 | ///
25 | /// Last Name (Surname)
26 | ///
27 | [Required]
28 | public string LastName { get; set; }
29 | ///
30 | /// Email
31 | ///
32 | public string Email { get; set; }
33 | ///
34 | /// Birth Date
35 | ///
36 | public DateTime? DateOfBirth { get; set; }
37 |
38 | }
39 | }
--------------------------------------------------------------------------------
/WebApiSwagger/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("WebApiSwagger")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("WebApiSwagger")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("4e7f72ee-3d06-41a9-a661-1f627d1b576d")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/WebApiSwagger/Properties/PublishProfiles/WebApiSwagger.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | MSDeploy
9 | Release
10 | Any CPU
11 | http://webapiswagger.azurewebsites.net
12 | True
13 | False
14 | webapiswagger.scm.azurewebsites.net:443
15 | WebApiSwagger
16 |
17 | True
18 | WMSVC
19 | True
20 | $WebApiSwagger
21 | <_SavePWD>True
22 | <_DestinationType>AzureWebSite
23 |
24 |
--------------------------------------------------------------------------------
/WebApiSwagger/Properties/PublishProfiles/local.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | FileSystem
9 | Release
10 | Any CPU
11 |
12 | True
13 | False
14 | D:\SwaggerPublish
15 | False
16 |
17 |
--------------------------------------------------------------------------------
/WebApiSwagger/Startup.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Owin;
2 | using Owin;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Web;
7 | using System.Web.Http;
8 | using WebApiSwagger.App_Start;
9 |
10 | [assembly: OwinStartup(typeof(WebApiSwagger.Startup))]
11 | namespace WebApiSwagger
12 | {
13 | public class Startup
14 | {
15 | public void Configuration(IAppBuilder app)
16 | {
17 |
18 | HttpConfiguration config = new HttpConfiguration();
19 |
20 | WebApiConfig.Register(config);
21 |
22 | Swashbuckle.Bootstrapper.Init(config);
23 |
24 | app.UseWebApi(config);
25 |
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/WebApiSwagger/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/WebApiSwagger/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/WebApiSwagger/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
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 |
--------------------------------------------------------------------------------
/WebApiSwagger/WebApiSwagger.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 |
8 |
9 | 2.0
10 | {AC28FE5F-B718-4908-9A88-92729375ABA2}
11 | {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
12 | Library
13 | Properties
14 | WebApiSwagger
15 | WebApiSwagger
16 | v4.5
17 | true
18 |
19 |
20 |
21 |
22 |
23 |
24 | true
25 | full
26 | false
27 | bin\
28 | DEBUG;TRACE
29 | prompt
30 | 4
31 | bin\WebApiSwagger.XML
32 |
33 |
34 | pdbonly
35 | true
36 | bin\
37 | TRACE
38 | prompt
39 | 4
40 | bin\WebApiSwagger.XML
41 |
42 |
43 |
44 |
45 | ..\packages\Microsoft.Owin.3.0.0\lib\net45\Microsoft.Owin.dll
46 |
47 |
48 | ..\packages\Microsoft.Owin.Host.SystemWeb.3.0.0\lib\net45\Microsoft.Owin.Host.SystemWeb.dll
49 |
50 |
51 | True
52 | ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll
53 |
54 |
55 | ..\packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll
56 |
57 |
58 | ..\packages\Owin.1.0\lib\net40\Owin.dll
59 |
60 |
61 | ..\packages\Swashbuckle.Core.4.0\lib\net40\Swashbuckle.Core.dll
62 |
63 |
64 |
65 | False
66 | ..\packages\Microsoft.AspNet.WebApi.Client.5.2.0\lib\net45\System.Net.Http.Formatting.dll
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | False
79 | ..\packages\Microsoft.AspNet.WebApi.Core.5.2.0\lib\net45\System.Web.Http.dll
80 |
81 |
82 | ..\packages\Microsoft.AspNet.WebApi.Owin.5.2.0\lib\net45\System.Web.Http.Owin.dll
83 |
84 |
85 | False
86 | ..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.0\lib\net45\System.Web.Http.WebHost.dll
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | ..\packages\WebActivatorEx.2.0.5\lib\net40\WebActivatorEx.dll
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | Web.config
105 |
106 |
107 | Web.config
108 |
109 |
110 |
111 |
112 | Designer
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 | 10.0
126 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 | True
136 | True
137 | 12159
138 | /
139 | http://localhost:12159/
140 | False
141 | False
142 |
143 |
144 | False
145 |
146 |
147 |
148 |
149 |
156 |
--------------------------------------------------------------------------------
/WebApiSwagger/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.5.2.0/Microsoft.AspNet.WebApi.5.2.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.5.2.0/Microsoft.AspNet.WebApi.5.2.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Client.5.2.0/Microsoft.AspNet.WebApi.Client.5.2.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.Client.5.2.0/Microsoft.AspNet.WebApi.Client.5.2.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Client.5.2.0/lib/net45/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.Client.5.2.0/lib/net45/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Client.5.2.0/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.Client.5.2.0/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Core.5.2.0/Content/web.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Core.5.2.0/Microsoft.AspNet.WebApi.Core.5.2.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.Core.5.2.0/Microsoft.AspNet.WebApi.Core.5.2.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Core.5.2.0/lib/net45/System.Web.Http.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.Core.5.2.0/lib/net45/System.Web.Http.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Owin.5.2.0/Microsoft.AspNet.WebApi.Owin.5.2.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.Owin.5.2.0/Microsoft.AspNet.WebApi.Owin.5.2.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Owin.5.2.0/lib/net45/System.Web.Http.Owin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.Owin.5.2.0/lib/net45/System.Web.Http.Owin.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.Owin.5.2.0/lib/net45/System.Web.Http.Owin.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | System.Web.Http.Owin
5 |
6 |
7 |
8 | Provides extension methods for the class.
9 |
10 |
11 | Gets the OWIN context for the specified request.
12 | The OWIN environment for the specified context, if available; otherwise .
13 | The HTTP request message.
14 |
15 |
16 | Gets the OWIN environment for the specified request.
17 | The OWIN environment for the specified request, if available; otherwise .
18 | The HTTP request message.
19 |
20 |
21 | Sets the OWIN context for the specified request.
22 | The HTTP request message.
23 | The OWIN context to set.
24 |
25 |
26 | Sets the OWIN environment for the specified request.
27 | The HTTP request message.
28 | The OWIN environment to set.
29 |
30 |
31 | Represents an authentication attribute that authenticates via OWIN middleware.
32 |
33 |
34 | Initializes a new instance of the class.
35 | The authentication type of the OWIN middleware to use.
36 |
37 |
38 |
39 |
40 | Gets the authentication type of the OWIN middleware to use.
41 |
42 |
43 |
44 | Represents an authentication filter that authenticates via OWIN middleware.
45 |
46 |
47 | Initializes a new instance of the class.
48 | The authentication type of the OWIN middleware to use.
49 |
50 |
51 | Gets a value indicating whether the filter allows multiple authentication.
52 | true if the filter allows multiple authentication; otherwise, false.
53 |
54 |
55 | Asynchronously authenticates the request.
56 | The task that completes the authentication.
57 | The authentication context.
58 | The cancellation token.
59 |
60 |
61 | Gets the authentication type of the OWIN middleware to use.
62 | The authentication type of the OWIN middleware to use.
63 |
64 |
65 | Asynchronously challenges an authentication.
66 | The task that completes the challenge.
67 | The context.
68 | The cancellation token.
69 |
70 |
71 | Provides extension methods for the class.
72 |
73 |
74 | Enables suppression of the host's default authentication.
75 | The server configuration.
76 |
77 |
78 | Represents an OWIN component that submits requests to an when invoked.
79 |
80 |
81 | Initializes a new instance of the class.
82 | The next component in the pipeline.
83 | The to submit requests to.
84 | The that determines whether or not to buffer requests and responses.
85 |
86 |
87 | Initializes a new instance of the class.
88 | The next component in the pipeline.
89 | The options to configure this adapter.
90 |
91 |
92 | Gets the cancellation token that triggers cleanup of this component.
93 | The cancellation token.
94 |
95 |
96 | Gets the that determines whether or not to buffer requests and responses.
97 | The that determines whether or not to buffer requests and responses.
98 |
99 |
100 | Releases all resources used by the current instance of the class.
101 |
102 |
103 | Releases unmanaged and optionally managed resources.
104 | true to release both managed and unmanaged resources; false to release only unmanaged resources.
105 |
106 |
107 | Gets the to use to process unhandled exceptions.
108 | The to use to process unhandled exceptions.
109 |
110 |
111 | Gets the to use to log unhandled exceptions.
112 | The to use to log unhandled exceptions.
113 |
114 |
115 | Returns .
116 |
117 |
118 | Gets the to submit requests to.
119 | The to submit requests to.
120 |
121 |
122 | Represents the options for configuring an .
123 |
124 |
125 | Initializes a new instance of the class.
126 |
127 |
128 | Gets or sets the that triggers cleanup of the .
129 | The that triggers cleanup of the .
130 |
131 |
132 | Gets or sets the that determines whether or not to buffer requests and responses.
133 | The that determines whether or not to buffer requests and responses.
134 |
135 |
136 | Gets or sets the to use to process unhandled exceptions.
137 | The to use to process unhandled exceptions.
138 |
139 |
140 | Gets or sets the to use to log unhandled exceptions.
141 | The to use to log unhandled exceptions.
142 |
143 |
144 | Gets or sets the to submit requests to.
145 | The to submit requests to.
146 |
147 |
148 | Provides the default implementation of used by the OWIN Web API adapter.
149 |
150 |
151 | Initializes a new instance of the class.
152 |
153 |
154 | Determines whether the host should buffer the HttpRequestMessage entity body.
155 | true if buffering should be used; otherwise a streamed request should be used.
156 | The host context.
157 |
158 |
159 | Determines whether the host should buffer the HttpResponseMessage entity body.
160 | true if buffering should be used; otherwise a streamed response should be used.
161 | The response.
162 |
163 |
164 | Provides the catch blocks used within this assembly.
165 |
166 |
167 | Gets the catch block in System.Web.Http.Owin.HttpMessageHandlerAdapter.BufferContent.
168 | The catch block in System.Web.Http.Owin.HttpMessageHandlerAdapter.BufferContent.
169 |
170 |
171 | Gets the catch block in System.Web.Http.Owin.HttpMessageHandlerAdapter.BufferError.
172 | The catch block in System.Web.Http.Owin.HttpMessageHandlerAdapter.BufferError.
173 |
174 |
175 | Gets the catch block in System.Web.Http.Owin.HttpMessageHandlerAdapter.ComputeContentLength.
176 | The catch block in System.Web.Http.Owin.HttpMessageHandlerAdapter.ComputeContentLength.
177 |
178 |
179 | Gets the catch block in System.Web.Http.Owin.HttpMessageHandlerAdapter.StreamContent.
180 | The catch block in System.Web.Http.Owin.HttpMessageHandlerAdapter.StreamContent.
181 |
182 |
183 | Represents a message handler that treats all OWIN authentication middleware as passive.
184 |
185 |
186 | Initializes a new instance of the class.
187 |
188 |
189 | Asynchronously sends a message request.
190 | The task that completes the asynchronous operation.
191 | The message request.
192 | The cancellation token.
193 |
194 |
195 |
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.WebHost.5.2.0/Microsoft.AspNet.WebApi.WebHost.5.2.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.WebHost.5.2.0/Microsoft.AspNet.WebApi.WebHost.5.2.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.WebHost.5.2.0/lib/net45/System.Web.Http.WebHost.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.AspNet.WebApi.WebHost.5.2.0/lib/net45/System.Web.Http.WebHost.dll
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.WebHost.5.2.0/lib/net45/System.Web.Http.WebHost.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | System.Web.Http.WebHost
5 |
6 |
7 |
8 | Provides a global for ASP.NET applications.
9 |
10 |
11 |
12 |
13 |
14 | Gets the global .
15 |
16 |
17 | Extension methods for
18 |
19 |
20 | Maps the specified route template.
21 | A reference to the mapped route.
22 | A collection of routes for the application.
23 | The name of the route to map.
24 | The route template for the route.
25 |
26 |
27 | Maps the specified route template and sets default route.
28 | A reference to the mapped route.
29 | A collection of routes for the application.
30 | The name of the route to map.
31 | The route template for the route.
32 | An object that contains default route values.
33 |
34 |
35 | Maps the specified route template and sets default route values and constraints.
36 | A reference to the mapped route.
37 | A collection of routes for the application.
38 | The name of the route to map.
39 | The route template for the route.
40 | An object that contains default route values.
41 | A set of expressions that specify values for routeTemplate.
42 |
43 |
44 | Maps the specified route template and sets default route values, constraints, and end-point message handler.
45 | A reference to the mapped route.
46 | A collection of routes for the application.
47 | The name of the route to map.
48 | The route template for the route.
49 | An object that contains default route values.
50 | A set of expressions that specify values for routeTemplate.
51 | The handler to which the request will be dispatched.
52 |
53 |
54 | A that passes ASP.NET requests into the pipeline and write the result back.
55 |
56 |
57 | Initializes a new instance of the class.
58 | The route data.
59 |
60 |
61 | Initializes a new instance of the class.
62 | The route data.
63 | The message handler to dispatch requests to.
64 |
65 |
66 | Provides code that handles an asynchronous task
67 | The asynchronous task.
68 | The HTTP context.
69 |
70 |
71 | A that returns instances of that can pass requests to a given instance.
72 |
73 |
74 | Initializes a new instance of the class.
75 |
76 |
77 | Provides the object that processes the request.
78 | An object that processes the request.
79 | An object that encapsulates information about the request.
80 |
81 |
82 | Gets the singleton instance.
83 |
84 |
85 | Provides the object that processes the request.
86 | An object that processes the request.
87 | An object that encapsulates information about the request.
88 |
89 |
90 | Provides a registration point for the simple membership pre-application start code.
91 |
92 |
93 | Registers the simple membership pre-application start code.
94 |
95 |
96 | Represents the web host buffer policy selector.
97 |
98 |
99 | Initializes a new instance of the class.
100 |
101 |
102 | Gets a value that indicates whether the host should buffer the entity body of the HTTP request.
103 | true if buffering should be used; otherwise a streamed request should be used.
104 | The host context.
105 |
106 |
107 | Uses a buffered output stream for the web host.
108 | A buffered output stream.
109 | The response.
110 |
111 |
112 | Provides the catch blocks used within this assembly.
113 |
114 |
115 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync.
116 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteBufferedResponseContentAsync.
117 |
118 |
119 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync.
120 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteErrorResponseContentAsync.
121 |
122 |
123 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength.
124 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.ComputeContentLength.
125 |
126 |
127 | Gets the label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync.
128 | The label for the catch block in System.Web.Http.WebHost.HttpControllerHandler.WriteStreamedResponseContentAsync.
129 |
130 |
131 | Gets the label for the catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData.
132 | The catch block in System.Web.Http.WebHost.WebHostExceptionCatchBlocks.HttpWebRoute.GetRouteData.
133 |
134 |
135 |
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.3.0.0/Microsoft.Owin.3.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.Owin.3.0.0/Microsoft.Owin.3.0.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.3.0.0/lib/net45/Microsoft.Owin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.Owin.3.0.0/lib/net45/Microsoft.Owin.dll
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.SystemWeb.3.0.0/Microsoft.Owin.Host.SystemWeb.3.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.Owin.Host.SystemWeb.3.0.0/Microsoft.Owin.Host.SystemWeb.3.0.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.SystemWeb.3.0.0/lib/net45/Microsoft.Owin.Host.SystemWeb.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.Owin.Host.SystemWeb.3.0.0/lib/net45/Microsoft.Owin.Host.SystemWeb.dll
--------------------------------------------------------------------------------
/packages/Microsoft.Owin.Host.SystemWeb.3.0.0/lib/net45/Microsoft.Owin.Host.SystemWeb.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.Owin.Host.SystemWeb
5 |
6 |
7 |
8 |
9 | Locates the startup class based on the following convention:
10 | AssemblyName.Startup, with a method named Configuration
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | Allows for a fallback loader to be specified.
21 |
22 |
23 |
24 |
25 |
26 | Allows for a fallback loader and a Dependency Injection activator to be specified.
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | Executes the loader, searching for the entry point by name.
42 |
43 | The name of the assembly and type entry point
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | A default fallback loader that does nothing.
57 |
58 |
59 |
60 |
61 | A placeholder method that always returns null.
62 |
63 |
64 |
65 | null.
66 |
67 |
68 |
69 | A singleton instance of the NullLoader type.
70 |
71 |
72 |
73 |
74 | A strongly-typed resource class, for looking up localized strings, etc.
75 |
76 |
77 |
78 |
79 | Returns the cached ResourceManager instance used by this class.
80 |
81 |
82 |
83 |
84 | Overrides the current thread's CurrentUICulture property for all
85 | resource lookups using this strongly typed resource class.
86 |
87 |
88 |
89 |
90 | Looks up a localized string similar to For the app startup parameter value '{0}', the assembly '{1}' was not found..
91 |
92 |
93 |
94 |
95 | Looks up a localized string similar to For the app startup parameter value '{0}', the class '{1}' was not found in assembly '{2}'..
96 |
97 |
98 |
99 |
100 | Looks up a localized string similar to The OwinStartup attribute discovered in assembly '{0}' referencing startup type '{1}' conflicts with the attribute in assembly '{2}' referencing startup type '{3}' because they have the same FriendlyName '{4}'. Remove or rename one of the attributes, or reference the desired type directly..
101 |
102 |
103 |
104 |
105 | Looks up a localized string similar to The discovered startup type '{0}' conflicts with the type '{1}'. Remove or rename one of the types, or reference the desired type directly..
106 |
107 |
108 |
109 |
110 | Looks up a localized string similar to The OwinStartupAttribute.FriendlyName value '{0}' does not match the given value '{1}' in Assembly '{2}'..
111 |
112 |
113 |
114 |
115 | Looks up a localized string similar to No '{0}' method was found in class '{1}'..
116 |
117 |
118 |
119 |
120 | Looks up a localized string similar to No assembly found containing a Startup or [AssemblyName].Startup class..
121 |
122 |
123 |
124 |
125 | Looks up a localized string similar to No assembly found containing an OwinStartupAttribute..
126 |
127 |
128 |
129 |
130 | Looks up a localized string similar to The OwinStartupAttribute.StartupType value is empty in Assembly '{0}'..
131 |
132 |
133 |
134 |
135 | Looks up a localized string similar to The type '{0}' referenced from assembly '{1}' does not define a property 'StartupType' of type 'Type'..
136 |
137 |
138 |
139 |
140 | Looks up a localized string similar to The given type or method '{0}' was not found. Try specifying the Assembly..
141 |
142 |
143 |
144 |
145 | Looks up a localized string similar to The '{0}' method on class '{1}' does not have the expected signature 'void {0}(IAppBuilder)'..
146 |
147 |
148 |
149 |
150 | Used to provide the data protection services that are derived from the MachineKey API. It is the best choice of
151 | data protection when you application is hosted by ASP.NET and all servers in the farm are running with the same Machine Key values.
152 |
153 |
154 |
155 |
156 | Returns a new instance of IDataProtection for the provider.
157 |
158 | Additional entropy used to ensure protected data may only be unprotected for the correct purposes.
159 | An instance of a data protection service
160 |
161 |
162 |
163 | Provides extension methods for .
164 |
165 |
166 |
167 |
168 | Gets the for the current request.
169 |
170 |
171 |
172 |
173 |
174 |
175 | Gets the for the current request.
176 |
177 |
178 |
179 |
180 |
181 |
182 | Provides extension methods for .
183 |
184 |
185 |
186 |
187 | Gets the for the current request.
188 |
189 |
190 |
191 |
192 |
193 |
194 | Gets the for the current request.
195 |
196 |
197 |
198 |
199 |
200 |
201 | Processes requests from System.Web as OWIN requests.
202 |
203 |
204 |
205 |
206 | Processes requests using the default OWIN application.
207 |
208 |
209 |
210 |
211 | Initiates an asynchronous call to the HTTP handler.
212 |
213 |
214 | An System.Web.HttpContextBase object that provides references to intrinsic server
215 | objects (for example, Request, Response, Session, and Server) used to service
216 | HTTP requests.
217 |
218 |
219 | The System.AsyncCallback to call when the asynchronous method call is complete.
220 | If callback is null, the delegate is not called.
221 |
222 |
223 | Any extra data needed to process the request.
224 |
225 |
226 | An System.IAsyncResult that contains information about the status of the process.
227 |
228 |
229 |
230 |
231 | Provides an asynchronous process End method when the process ends.
232 |
233 |
234 | An System.IAsyncResult that contains information about the status of the process.
235 |
236 |
237 |
238 |
239 | Gets a value indicating whether another request can use the System.Web.IHttpHandler instance.
240 |
241 |
242 | true.
243 |
244 |
245 |
246 |
247 | Processes a route through an OWIN pipeline.
248 |
249 |
250 |
251 |
252 | Initialize an OwinRouteHandler
253 |
254 | The method to initialize the pipeline that processes requests for the route.
255 |
256 |
257 |
258 | Provides the object that processes the request.
259 |
260 |
261 | An object that processes the request.
262 |
263 | An object that encapsulates information about the request.
264 |
265 |
266 |
267 | Registers the OWIN request processing module at application startup.
268 |
269 |
270 |
271 |
272 | Registers the OWIN request processing module.
273 |
274 |
275 |
276 |
277 | A strongly-typed resource class, for looking up localized strings, etc.
278 |
279 |
280 |
281 |
282 | Returns the cached ResourceManager instance used by this class.
283 |
284 |
285 |
286 |
287 | Overrides the current thread's CurrentUICulture property for all
288 | resource lookups using this strongly typed resource class.
289 |
290 |
291 |
292 |
293 | Looks up a localized string similar to The following errors occurred while attempting to load the app..
294 |
295 |
296 |
297 |
298 | Looks up a localized string similar to Cannot register for 'OnSendingHeaders' event after response headers have been sent..
299 |
300 |
301 |
302 |
303 | Looks up a localized string similar to The key '{0}' is already present in the dictionary..
304 |
305 |
306 |
307 |
308 | Looks up a localized string similar to To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config..
309 |
310 |
311 |
312 |
313 | Looks up a localized string similar to To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config..
314 |
315 |
316 |
317 |
318 | Looks up a localized string similar to The given stage '{0}' is not supported..
319 |
320 |
321 |
322 |
323 | Looks up a localized string similar to No owin.Environment item was found in the context..
324 |
325 |
326 |
327 |
328 | Looks up a localized string similar to An exception was thrown while trying to load the client certificate:.
329 |
330 |
331 |
332 |
333 | Looks up a localized string similar to The OWIN entry point threw an exception:.
334 |
335 |
336 |
337 |
338 | Looks up a localized string similar to The IAsyncResult callback for OwinCallHandler threw an exception:.
339 |
340 |
341 |
342 |
343 | Looks up a localized string similar to Failed to register the OWIN module:.
344 |
345 |
346 |
347 |
348 | Looks up a localized string similar to The application threw one or more exceptions when notified of a client disconnect:.
349 |
350 |
351 |
352 |
353 | Looks up a localized string similar to Shutdown detection setup failed:.
354 |
355 |
356 |
357 |
358 | Looks up a localized string similar to One or more exceptions were thrown during app pool shutdown:.
359 |
360 |
361 |
362 |
363 | Looks up a localized string similar to An exception was thrown from a timer callback:.
364 |
365 |
366 |
367 |
368 | Looks up a localized string similar to An exception was thrown while processing the WebSocket:.
369 |
370 |
371 |
372 |
373 | Looks up a localized string similar to Support for WebSockets has been detected..
374 |
375 |
376 |
377 |
378 | Looks up a localized string similar to No support for WebSockets has been detected..
379 |
380 |
381 |
382 |
383 | Provides extension methods for registering OWIN applications as System.Web routes.
384 |
385 |
386 |
387 |
388 | Registers a route for the default OWIN application.
389 |
390 | The route collection.
391 | The route path to map to the default OWIN application.
392 | The created route.
393 |
394 |
395 |
396 | Registers a route for a specific OWIN application entry point.
397 |
398 | The OWIN application entry point type.
399 | The route collection.
400 | The route path to map to the given OWIN application.
401 | The OWIN application entry point.
402 | The created route.
403 |
404 |
405 |
406 | Invokes the System.Action startup delegate to build the OWIN application
407 | and then registers a route for it on the given path.
408 |
409 | The route collection.
410 | The route path to map to the given OWIN application.
411 | A System.Action delegate invoked to build the OWIN application.
412 | The created route.
413 |
414 |
415 |
416 | Registers a route for the default OWIN application.
417 |
418 | The route collection.
419 | The given name of the route.
420 | The route path to map to the default OWIN application.
421 | The created route.
422 |
423 |
424 |
425 | Registers a route for a specific OWIN application entry point.
426 |
427 | The OWIN application entry point type.
428 | The route collection.
429 | The given name of the route.
430 | The route path to map to the given OWIN application.
431 | The OWIN application entry point.
432 | The created route.
433 |
434 |
435 |
436 | Invokes the System.Action startup delegate to build the OWIN application
437 | and then registers a route for it on the given path.
438 |
439 | The route collection.
440 | The given name of the route.
441 | The route path to map to the given OWIN application.
442 | A System.Action delegate invoked to build the OWIN application.
443 | The created route.
444 |
445 |
446 |
447 | Provides a way to define routes for an OWIN pipeline.
448 |
449 | The route collection.
450 | The URL pattern for the route.
451 | The method to initialize the pipeline that processes requests for the route.
452 |
453 |
454 |
455 | Provides a way to define routes for an OWIN pipeline.
456 |
457 | The route collection.
458 | The URL pattern for the route.
459 | The values to use if the URL does not contain all the parameters.
460 | The method to initialize the pipeline that processes requests for the route.
461 |
462 |
463 |
464 | Provides a way to define routes for an OWIN pipeline.
465 |
466 | The route collection.
467 | The URL pattern for the route.
468 | The values to use if the URL does not contain all the parameters.
469 | A regular expression that specifies valid values for a URL parameter.
470 | The method to initialize the pipeline that processes requests for the route.
471 |
472 |
473 |
474 | Provides a way to define routes for an OWIN pipeline.
475 |
476 | The route collection.
477 | The URL pattern for the route.
478 | The values to use if the URL does not contain all the parameters.
479 | A regular expression that specifies valid values for a URL parameter.
480 | Custom values that are passed to the route handler, but which are not used to determine whether the route matches a specific URL pattern. These values are passed to the route handler, where they can be used for processing the request.
481 | The method to initialize the pipeline that processes requests for the route.
482 |
483 |
484 |
485 | Provides a way to define routes for an OWIN pipeline.
486 |
487 | The route collection.
488 | The name of the route.
489 | The URL pattern for the route.
490 | The method to initialize the pipeline that processes requests for the route.
491 |
492 |
493 |
494 | Provides a way to define routes for an OWIN pipeline.
495 |
496 | The route collection.
497 | The name of the route.
498 | The URL pattern for the route.
499 | The values to use if the URL does not contain all the parameters.
500 | The method to initialize the pipeline that processes requests for the route.
501 |
502 |
503 |
504 | Provides a way to define routes for an OWIN pipeline.
505 |
506 | The route collection.
507 | The name of the route.
508 | The URL pattern for the route.
509 | The values to use if the URL does not contain all the parameters.
510 | A regular expression that specifies valid values for a URL parameter.
511 | The method to initialize the pipeline that processes requests for the route.
512 |
513 |
514 |
515 | Provides a way to define routes for an OWIN pipeline.
516 |
517 | The route collection.
518 | The name of the route.
519 | The URL pattern for the route.
520 | The values to use if the URL does not contain all the parameters.
521 | A regular expression that specifies valid values for a URL parameter.
522 | Custom values that are passed to the route handler, but which are not used to determine whether the route matches a specific URL pattern. These values are passed to the route handler, where they can be used for processing the request.
523 | The method to initialize the pipeline that processes requests for the route.
524 |
525 |
526 |
527 |
--------------------------------------------------------------------------------
/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg
--------------------------------------------------------------------------------
/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/Newtonsoft.Json.4.5.11.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/Newtonsoft.Json.4.5.11.nupkg
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/lib/net20/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/lib/net20/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/lib/net35/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/lib/net35/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/lib/net40/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/lib/net40/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/lib/sl3-wp/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/lib/sl3-wp/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/lib/sl4-windowsphone71/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/lib/sl4-windowsphone71/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/lib/sl4/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/lib/sl4/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Newtonsoft.Json.4.5.11/lib/winrt45/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Newtonsoft.Json.4.5.11/lib/winrt45/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/packages/Owin.1.0/Owin.1.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Owin.1.0/Owin.1.0.nupkg
--------------------------------------------------------------------------------
/packages/Owin.1.0/lib/net40/Owin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Owin.1.0/lib/net40/Owin.dll
--------------------------------------------------------------------------------
/packages/Swashbuckle.4.0/Content/App_Start/SwaggerConfig.cs.pp:
--------------------------------------------------------------------------------
1 | using System.Web.Http;
2 | using $rootnamespace$;
3 | using WebActivatorEx;
4 |
5 | [assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")]
6 |
7 | namespace $rootnamespace$
8 | {
9 | public class SwaggerConfig
10 | {
11 | public static void Register()
12 | {
13 | Swashbuckle.Bootstrapper.Init(GlobalConfiguration.Configuration);
14 |
15 | // NOTE: If you want to customize the generated swagger or UI, use SwaggerSpecConfig and/or SwaggerUiConfig here ...
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/packages/Swashbuckle.4.0/Content/Web.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/packages/Swashbuckle.4.0/Swashbuckle.4.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Swashbuckle.4.0/Swashbuckle.4.0.nupkg
--------------------------------------------------------------------------------
/packages/Swashbuckle.Core.4.0/Swashbuckle.Core.4.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Swashbuckle.Core.4.0/Swashbuckle.Core.4.0.nupkg
--------------------------------------------------------------------------------
/packages/Swashbuckle.Core.4.0/lib/net40/Swashbuckle.Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/Swashbuckle.Core.4.0/lib/net40/Swashbuckle.Core.dll
--------------------------------------------------------------------------------
/packages/WebActivatorEx.2.0.5/WebActivatorEx.2.0.5.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/WebActivatorEx.2.0.5/WebActivatorEx.2.0.5.nupkg
--------------------------------------------------------------------------------
/packages/WebActivatorEx.2.0.5/lib/net40/WebActivatorEx.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tjoudeh/WebApiSwagger/0323fdee3761d026e761d11890596a95702b2cda/packages/WebActivatorEx.2.0.5/lib/net40/WebActivatorEx.dll
--------------------------------------------------------------------------------
/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------