12 |
@description.Documentation
13 |
14 |
Request Information
15 |
16 |
URI Parameters
17 | @Html.DisplayFor(m => m.UriParameters, "Parameters")
18 |
19 |
Body Parameters
20 |
21 |
@Model.RequestDocumentation
22 |
23 | @if (Model.RequestModelDescription != null)
24 | {
25 | @Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription })
26 | if (Model.RequestBodyParameters != null)
27 | {
28 | @Html.DisplayFor(m => m.RequestBodyParameters, "Parameters")
29 | }
30 | }
31 | else
32 | {
33 |
None.
34 | }
35 |
36 | @if (Model.SampleRequests.Count > 0)
37 | {
38 |
Request Formats
39 | @Html.DisplayFor(m => m.SampleRequests, "Samples")
40 | }
41 |
42 |
Response Information
43 |
44 |
Resource Description
45 |
46 |
@description.ResponseDescription.Documentation
47 |
48 | @if (Model.ResourceDescription != null)
49 | {
50 | @Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription })
51 | if (Model.ResourceProperties != null)
52 | {
53 | @Html.DisplayFor(m => m.ResourceProperties, "Parameters")
54 | }
55 | }
56 | else
57 | {
58 |
None.
59 | }
60 |
61 | @if (Model.SampleResponses.Count > 0)
62 | {
63 |
Response Formats
64 | @Html.DisplayFor(m => m.SampleResponses, "Samples")
65 | }
66 |
67 |
--------------------------------------------------------------------------------
/packages/Microsoft.AspNet.WebApi.HelpPage.5.1.2/Content/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using System.Web.Http.Description
3 | @using $rootnamespace$.Areas.HelpPage.Models
4 | @using $rootnamespace$.Areas.HelpPage.ModelDescriptions
5 | @model HelpPageApiModel
6 |
7 | @{
8 | ApiDescription description = Model.ApiDescription;
9 | }
10 |
12 |
@description.Documentation
13 |
14 |
Request Information
15 |
16 |
URI Parameters
17 | @Html.DisplayFor(m => m.UriParameters, "Parameters")
18 |
19 |
Body Parameters
20 |
21 |
@Model.RequestDocumentation
22 |
23 | @if (Model.RequestModelDescription != null)
24 | {
25 | @Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription })
26 | if (Model.RequestBodyParameters != null)
27 | {
28 | @Html.DisplayFor(m => m.RequestBodyParameters, "Parameters")
29 | }
30 | }
31 | else
32 | {
33 |
None.
34 | }
35 |
36 | @if (Model.SampleRequests.Count > 0)
37 | {
38 |
Request Formats
39 | @Html.DisplayFor(m => m.SampleRequests, "Samples")
40 | }
41 |
42 |
Response Information
43 |
44 |
Resource Description
45 |
46 |
@description.ResponseDescription.Documentation
47 |
48 | @if (Model.ResourceDescription != null)
49 | {
50 | @Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription })
51 | if (Model.ResourceProperties != null)
52 | {
53 | @Html.DisplayFor(m => m.ResourceProperties, "Parameters")
54 | }
55 | }
56 | else
57 | {
58 |
None.
59 | }
60 |
61 | @if (Model.SampleResponses.Count > 0)
62 | {
63 |
Response Formats
64 | @Html.DisplayFor(m => m.SampleResponses, "Samples")
65 | }
66 |
67 |
--------------------------------------------------------------------------------
/packages/WebGrease.1.5.2/tools/uninstall.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | # Visual Studio execution done via NuGet Package Manager
4 | Function VSExecution($toolsPath, $project)
5 | {
6 |
7 |
8 | $project.DTE.ExecuteCommand("File.SaveAll", [system.string]::Empty)
9 |
10 | # Get the msbuild version of the project and add the import
11 | $msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
12 |
13 | # now remove our property that points to this package path, "WebGreaseLibPath"
14 | foreach ($property in $msbuild.Properties)
15 | {
16 | if ($property.Name -eq "WebGreaseLibPath")
17 | {
18 | $propertyToRemove = $property
19 | }
20 | }
21 |
22 | if ($propertyToRemove -ne $null)
23 | {
24 | $propertyToRemove.Project.RemoveProperty($propertyToRemove)
25 | $project.Save()
26 | }
27 |
28 | $project.DTE.ExecuteCommand("File.SaveAll", [system.string]::Empty)
29 | }
30 |
31 | # Command line execution done by any external tool (For example, NuGetUpdater)
32 | # $project - parameter value is path to Project file in this case.
33 | Function CommandLineExecution($toolsPath, $project)
34 | {
35 | [Reflection.Assembly]::LoadWithPartialName("System.Xml")
36 | [Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq")
37 |
38 |
39 |
40 | $projXDoc = [System.Xml.Linq.XDocument]::Load($project)
41 | $defaultNameSpace = $projXDoc.Root.GetDefaultNamespace()
42 | $xmlReader = $projXDoc.CreateReader()
43 | $namespaceManager = new-object System.Xml.XmlNamespaceManager($xmlReader.NameTable)
44 | $namespaceManager.AddNamespace("my", $defaultNameSpace.NamespaceName)
45 |
46 | $msnRfPackageElement = [System.Xml.XPath.Extensions]::XPathSelectElement($projXDoc.Root, "//my:WebGreaseLibPath", $namespaceManager)
47 | if($msnRfPackageElement -ne $null)
48 | {
49 | $msnRfPackageElement.Remove()
50 | }
51 |
52 | # save the project
53 | $projXDoc.Save($project)
54 | }
55 |
56 | IF ($project -is [system.string])
57 | {
58 | CommandLineExecution $toolsPath $project
59 | }
60 | ELSE
61 | {
62 | VSExecution $toolsPath $project
63 | }
64 |
--------------------------------------------------------------------------------
/MovieHunter.UI/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |