#api

Web api Json 接受的参数类型为父类,自动序列化为子类的过程

场景:publicabstractclassJsonCreationConverter<T>:JsonConverter{///<summary>///thisisveryimportant,otherwiseserializationbreaks!///</summary>publ...
代码星球 ·2020-04-05

requestLibrary API

 requestLibraryAPI KeywordArgumentsDocumentationCreateNtlmSessionalias,url,auth,headers={},cookies=None,timeout=None,proxies=None,verify=False创建一个HTTP...
代码星球 ·2020-04-05

Robot Framework-DatabaseLibrary(MySql) API

API参数说明CheckIfExistsInDatabase查询语句数据库中存在:存在,则为PASS,不存在,则为FAILCheckIfNotExistsInDatabase查询语句数据库中不存在:不存在,则为PASS,存在,则为FAILConnectToDatabasedbapiModuleName=None,dbN...

api文档设计工具:RAML、Swagger

api文档设计工具是用来描述和辅助API开发的。一、RAMLhttps://raml.org/  https://wenku.baidu.com/view/9523238d5ef7ba0d4b733b16.html###RAML(RESTfulAPIModelingLanguage即RESTfulAPI建模语言)是对R...

Autofac ASP.NET Web API (Beta) Integration

WiththebetareleaseofASP.NETMVC4andtheASP.NETWebAPIbeingreleasedafewweeksago,IdecideditwasabouttimetohavealookatwhattheintegrationstorywouldlikeforAutofac.Thepac...

Web api help page error CS0012: Type "System.Collections.Generic.Dictionary'2错误

1、在asp.netBoilerplate项目中,Abp.0.12.0.2,.netframework4.5.2。下载后添加了webApi的helpPage功能,调试出现错误。dubug:atAreasHelpPageViewsHelpDisplayTemplatesHelpPageApiModel.cshtmlSam...
代码星球 ·2020-04-05

C++ 并发编程 01 线程api

1.使用多线程的好处:提高性能,分离关注点 2.多线程所在头文件<thread>3.使用线程方式为std::thread(functioncall),如:#include<iostream>#include<thread>voidhello(){std::cout<&...

Web Api HelpPage

为了方面APP开发人员,服务端的接口都应当提供详尽的API说明。但每次有修改,既要维护代码,又要维护文档,一旦开发进度紧张,很容易导致代码与文档不一致。WebAPI有一个HelpPage插件,可以很方便的根据代码及注释自动生成相关API说明页面。HelpPage安装步骤及扩展(以VS2015为例):右键点击WebAPI...
代码星球 ·2020-04-05

Custom Exception in ASP.NET Web API 2 with Custom HttpResponse Message

AbenefitofusingASP.NETWebAPIisthatitcanbeconsumedbyanyclientwiththecapabilityofmakingHTTPcallsandprocessingJSONdata.TheclientcanuseHTTPmethodstoperformRead/Writ...

Web api 访问HttpContext

HttpContextcontext;Request.Properties.TryGetValue<HttpContext>("MS_HttpContext",outcontext); ...
代码星球 ·2020-04-05

8 ways to improve ASP.NET Web API performance

ASP.NETWebAPIisagreatpieceoftechnology.WritingWebAPIissoeasythatmanydevelopersdon’ttakethetimetostructuretheirapplicationsforgreatperformance.Inthisarticl...
代码星球 ·2020-04-05

Replace JSON.NET with Jil JSON serializer in ASP.NET Web API

IhaverecentlycomeacrossacomparisonoffastJSONserializersin.NET,whichshowsthat JilJSONserializer isoneofthefastest.JiliscreatedbyKevinMontrosedevelopera...

C#进阶系列——WebApi 接口参数不再困惑:传参详解

原文地址:http://www.cnblogs.com/landeanfen/p/5337072.html...

WebApi参数传递总结

在WebAPI中,请求主体(HttpContent)只能被读取一次,不被缓存,只能向前读取的流。举例子说明:1.请求地址:/?id=123&name=bob   服务端方法:voidAction(intid,stringname)//所有参数都是简单类型,因而都将来自url2.请求...
代码星球 ·2020-04-05

WebApi 身份认证解决方案:Basic基础认证

https://www.cnblogs.com/landeanfen/p/5287064.html...
首页上一页...5758596061...下一页尾页