App.HttpApi 2.3.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package App.HttpApi --version 2.3.7
                    
NuGet\Install-Package App.HttpApi -Version 2.3.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="App.HttpApi" Version="2.3.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="App.HttpApi" Version="2.3.7" />
                    
Directory.Packages.props
<PackageReference Include="App.HttpApi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add App.HttpApi --version 2.3.7
                    
#r "nuget: App.HttpApi, 2.3.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package App.HttpApi@2.3.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=App.HttpApi&version=2.3.7
                    
Install as a Cake Addin
#tool nuget:?package=App.HttpApi&version=2.3.7
                    
Install as a Cake Tool

(1)一种轻量的提供数据的框架,可作为 WebAPI 的替代方案
(2)将类中的方法暴露为http接口,如:
   HttpApi/Name/GetData  data:{page:1,rows:2,sort:'abc',order:'desc'}
   HttpApi/Name/api
   HttpApi/Name/apis
(3)将页面类中的方法暴露为http接口,如:
   Handler1.aspx/GetData?page=1&rows=2&sort=abc&order=desc
   Handler1.ashx/GetData?page=1&rows=2&sort=abc&order=desc
(4)自动生成客户端调用脚本    HttpApi/TypeName/js
(5)带缓存机制:可指定方法返回值的缓存时间、方式
(6)带鉴权机制:访问IP、动作、 是否登录、用户名、角色、安全码。可自定义接口鉴权逻辑。
(7)可配置输出格式:枚举、递进、日期、首字母大小写、错误时的输出方式等
(8)带封装机制:可将方法返回值自动包裹为 APIResult 结构体
(9)服务器端和客户端都可指定接口返回的数据格式,如text, xml, json, file, image, base64image 等

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.8.5 1,280 11/28/2020
2.8.4 590 11/27/2020
2.8.3 647 11/17/2020
2.8.2 630 10/28/2020
2.8.1 649 10/13/2020
2.8.0 776 11/28/2019
2.7.0 748 11/26/2019
2.6.1 781 11/8/2019
2.6.0 756 11/5/2019
2.5.4 792 11/2/2019
2.5.3 761 10/26/2019
2.5.2 793 9/30/2019
2.5.1 786 9/30/2019
2.5.0 800 9/29/2019
2.4.1 749 9/29/2019
2.4.0 767 9/29/2019
2.3.9 789 8/15/2019
2.3.8 863 8/8/2019
2.3.7 766 8/7/2019
2.3.6 805 8/6/2019
2.3.5 843 7/11/2019
2.3.4 826 5/24/2019
2.3.3 946 12/3/2018
2.3.2 989 11/23/2018
2.3.1 1,025 11/2/2018
2.3.0 983 10/31/2018
2.2.0 986 10/23/2018
2.1.0 996 10/22/2018
2.0.2 976 10/22/2018
2.0.1 974 10/22/2018
2.0.0 1,024 10/22/2018
1.0.2 1,261 12/14/2017
1.0.1 1,232 12/12/2017
1.0.0 1,524 12/12/2017

- API展示页面应用 Bootstrap 样式
- 修正复杂类型参数可空字段BUG
- 简化 Page.aspx/Method 方式调用,无需继承任何类