Skip to content
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
# Web API Test Client
A simple Test Client built on top of ASP.NET Web API Help Page.

ASP.NET Web API 在线测试工具,依赖说 ASP.NET Web API Help Page.

![demo](docs/images/demo.gif)


forked form https://github.com/yaohuang/WebApiTestClient

## change log
V1.2 work for ASP.NET Web API Help Page >=5.1, at 2014.6.18


## Documentation
http://blogs.msdn.com/b/yaohuang1/archive/2012/12/04/10373804.aspx

## Get it on NuGet.org

Install-Package WebApiTestClient -Pre
Install-Package WebApiTestOnHelpPage

## LICENSE
[Apache 2.0 License](https://github.com/yaohuang/WebApiTestClient/blob/master/LICENSE.md)

## Building the package
Open and build WebApiTestClient.sln. A NuGet package will be generated as part of the build process and it can be found under the bin folder.
Open and build WebApiTestClient.sln. A NuGet package will be generated as part of the build process and it can be found under the bin folder.
30 changes: 30 additions & 0 deletions WebApiTestClient/WebApiTestClient/WebApiTestClient.1.1.2.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>WebApiTestClient</id>
<version>1.1.2</version>
<title>A Simple Test Client for ASP.NET Web API</title>
<authors>yaohuang</authors>
<licenseUrl>https://github.com/yaohuang/WebApiTestClient/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/yaohuang/WebApiTestClient</projectUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>A simple Test Client built on top of ASP.NET Web API Help Page.</description>
<summary>A simple Test Client built on top of ASP.NET Web API Help Page.</summary>
<language>en-US</language>
<tags>ASP.NET Web API Test Client</tags>
<dependencies>
<dependency id="knockoutjs" version="2.2.0" />
<dependency id="jQuery.UI.Combined" version="1.9.2" />
<dependency id="Microsoft.AspNet.WebApi.HelpPage" version="5.2.0" />
</dependencies>
</metadata>
<files>
<file src="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" target="content\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" />
<file src="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" target="content\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" />
<file src="Areas\HelpPage\TestClient.css" target="content\Areas\HelpPage\TestClient.css" />
<file src="Scripts\WebApiTestClient.js" target="content\Scripts\WebApiTestClient.js" />
<file src="tools\Install.ps1" target="tools\install.ps1" />
<file src="tools\Uninstall.ps1" target="tools\uninstall.ps1" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>
27 changes: 13 additions & 14 deletions WebApiTestClient/WebApiTestClient/WebApiTestClient.nuspec
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>WebApiTestClient</id>
<version>1.1.1</version>
<title>A Simple Test Client for ASP.NET Web API</title>
<authors>yaohuang</authors>
<owners />
<projectUrl>https://github.com/yaohuang/WebApiTestClient</projectUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<licenseUrl>https://github.com/yaohuang/WebApiTestClient/blob/master/LICENSE.md</licenseUrl>
<id>WebApiTestOnHelpPage</id>
<version>1.2</version>
<title>ASP.NET Web API Test Client For Web API HelpPage</title>
<authors>[email protected]</authors>
<licenseUrl>https://github.com/wuchang/WebApiTestClient/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/wuchang/WebApiTestClient</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A simple Test Client built on top of ASP.NET Web API Help Page.</description>
<summary>A simple Test Client built on top of ASP.NET Web API Help Page.</summary>
<language>en-US</language>
<tags>ASP.NET Web API Test Client</tags>
<dependencies>
<dependency id="Microsoft.AspNet.WebApi.HelpPage" version="4.0.0" />
<dependency id="knockoutjs" version="2.2.0" />
<dependency id="jQuery.UI.Combined" version="1.9.2" />
<dependency id="Microsoft.AspNet.WebApi.HelpPage" version="5.1.0" />
<dependency id="knockoutjs" version="2.2.0" />
<dependency id="jQuery.UI.Combined" version="1.9.2" />
</dependencies>
</metadata>
<files>
<file src="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" target="content\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" />
<file src="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" target="content\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" />
<file src="Areas\HelpPage\TestClient.css" target="content\Areas\HelpPage\TestClient.css" />
<file src="Scripts\WebApiTestClient.js" target="content\Scripts\WebApiTestClient.js" />
<file src="tools\install.ps1" target="tools\install.ps1" />
<file src="tools\uninstall.ps1" target="tools\uninstall.ps1" />
<file src="tools\Install.ps1" target="tools\install.ps1" />
<file src="tools\Uninstall.ps1" target="tools\uninstall.ps1" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>WebApiTestOnHelpPage</id>
<version>1.2.2</version>
<title>ASP.NET Web API Test Client For Web API HelpPage</title>
<authors>[email protected]</authors>
<licenseUrl>https://github.com/wuchang/WebApiTestClient/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/wuchang/WebApiTestClient</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A simple Test Client built on top of ASP.NET Web API Help Page.</description>
<summary>A simple Test Client built on top of ASP.NET Web API Help Page.</summary>
<language>en-US</language>
<tags>ASP.NET Web API Test Client</tags>
<dependencies>
<dependency id="knockoutjs" version="2.2.0" />
<dependency id="jQuery.UI.Combined" version="1.9.2" />
<dependency id="Microsoft.AspNet.WebApi.HelpPage" version="5.2.0" />
</dependencies>
</metadata>
<files>
<file src="E:\workcode\WebApiTestClient\wuchang\WebApiTestClient\WebApiTestClient\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" target="content\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" />
<file src="E:\workcode\WebApiTestClient\wuchang\WebApiTestClient\WebApiTestClient\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" target="content\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" />
<file src="E:\workcode\WebApiTestClient\wuchang\WebApiTestClient\WebApiTestClient\Areas\HelpPage\TestClient.css" target="content\Areas\HelpPage\TestClient.css" />
<file src="E:\workcode\WebApiTestClient\wuchang\WebApiTestClient\WebApiTestClient\Scripts\WebApiTestClient.js" target="content\Scripts\WebApiTestClient.js" />
<file src="E:\workcode\WebApiTestClient\wuchang\WebApiTestClient\WebApiTestClient\tools\Install.ps1" target="tools\install.ps1" />
<file src="E:\workcode\WebApiTestClient\wuchang\WebApiTestClient\WebApiTestClient\tools\Uninstall.ps1" target="tools\uninstall.ps1" />
<file src="E:\workcode\WebApiTestClient\wuchang\WebApiTestClient\WebApiTestClient\readme.txt" target="readme.txt" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>WebApiTestOnHelpPage</id>
<version>1.3.0</version>
<title>ASP.NET Web API Test Client For Web API HelpPage</title>
<authors>[email protected]</authors>
<licenseUrl>https://github.com/wuchang/WebApiTestClient/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/wuchang/WebApiTestClient</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A simple Test Client built on top of ASP.NET Web API Help Page.</description>
<summary>A simple Test Client built on top of ASP.NET Web API Help Page.</summary>
<language>en-US</language>
<tags>ASP.NET Web API Test Client</tags>
<dependencies>
<dependency id="knockoutjs" version="2.2.0" />
<dependency id="jQuery.UI.Combined" version="1.9.2" />
<dependency id="Microsoft.AspNet.WebApi.HelpPage" version="5.2.2" />
</dependencies>
</metadata>
<files>
<file src="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" target="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" />
<file src="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" target="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" />
<file src="Areas\HelpPage\TestClient.css" target="Areas\HelpPage\TestClient.css" />
<file src="Scripts\WebApiTestClient.js" target="Scripts\WebApiTestClient.js" />
<file src="tools\install.ps1" target="tools\install.ps1" />
<file src="tools\uninstall.ps1" target="tools\uninstall.ps1" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>WebApiTestOnHelpPage</id>
<version>1.3.4</version>
<title>ASP.NET Web API Test Client For Web API HelpPage</title>
<authors>[email protected]</authors>
<licenseUrl>https://github.com/wuchang/WebApiTestClient/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/wuchang/WebApiTestClient</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A simple Test Client built on top of ASP.NET Web API Help Page.</description>
<summary>A simple Test Client built on top of ASP.NET Web API Help Page.</summary>
<language>en-US</language>
<tags>ASP.NET Web API Test Client</tags>
<dependencies>
<dependency id="jQuery.UI.Combined" version="1.9.2" />
<dependency id="Microsoft.AspNet.WebApi.HelpPage" version="5.2.2" />
<dependency id="knockoutjs" version="3.2.0" />
</dependencies>
</metadata>
<files>
<file src="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" target="content\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientDialogs.cshtml.pp" />
<file src="Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" target="content\Areas\HelpPage\Views\Help\DisplayTemplates\TestClientReferences.cshtml" />
<file src="Areas\HelpPage\TestClient.css" target="content\Areas\HelpPage\TestClient.css" />
<file src="Scripts\WebApiTestClient.js" target="content\Scripts\WebApiTestClient.js" />
<file src="tools\Install.ps1" target="tools\install.ps1" />
<file src="tools\Uninstall.ps1" target="tools\uninstall.ps1" />
<file src="readme.txt" target="readme.txt" />
</files>
</package>
2 changes: 1 addition & 1 deletion WebApiTestClient/WebApiTestClient/tools/Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if($file) {
$file.Document.Selection.StartOfDocument()
if(!$file.Document.MarkText("@Html.DisplayForModel(`"TestClientDialogs`")"))
{
$file.Document.ReplaceText("@section Scripts {", "@Html.DisplayForModel(`"TestClientDialogs`")`n@section Scripts {`n @Html.DisplayForModel(`"TestClientReferences`")")
$file.Document.ReplaceText("@model HelpPageApiModel", "@model HelpPageApiModel`n@section Scripts {`n @Html.DisplayForModel(`"TestClientDialogs`")`n @Html.DisplayForModel(`"TestClientReferences`")`n}")
$file.Save()
}
else
Expand Down
2 changes: 1 addition & 1 deletion WebApiTestClient/WebApiTestClient/tools/Uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ if($file) {
$file.Open()
$file.Document.Activate()
$file.Document.Selection.StartOfDocument()
$file.Document.ReplaceText("@Html.DisplayForModel(`"TestClientDialogs`")`n@section Scripts {`n @Html.DisplayForModel(`"TestClientReferences`")", "@section Scripts {")
$file.Document.ReplaceText( "@model HelpPageApiModel`n@section Scripts {`n @Html.DisplayForModel(`"TestClientDialogs`")`n @Html.DisplayForModel(`"TestClientReferences`")`n}","@model HelpPageApiModel")
$file.Save()
}
Binary file added docs/images/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.