Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
csharp-rest-client-builder
Advanced tools
用于生成C#,RestApiClient客户端库的代码生成器
该生成器使用nodejs编写,使用前请安装Nodejs。
使用 jojoin/tppl
模板引擎生成代码。
安装:
# 安装到全局npm
npm install --global csharp-rest-client-builder
生成:
# 生成http://your-host.com/swagger/docs/v1到默认目录(outputs)下
restapi-build http://your-host.com/swagger/docs/v1
您还可以使用以下命令查看命令说明
restapi-build --help
生成后的代码依赖以下库运行:
RestSharp@105.2.3.0
Newtonsoft.Json@8.0.3
请为使用代码的项目添加以上Nuget依赖。
本工具还支持配置文件,配置路径为当前路径下的 .restapi.json
文件,
具体配置参考如下:
{
// swagger服务器地址
"swaggerUrl": "http://your-host.com/swagger/docs/v1",
// 客户端默认命名空间(完整命名空间),ApiClient类存于此处,默认值: RestApiClient
"clientNamespace": "RestApiClient",
// Models的子命名空间(仅须填写子命名空间),默认值:ClientModels
"modelsNamespace": "ClientModels",
// 生成的文件输出路径,默认值:outputs
"outputDir": "../",
// Models的输出路径,默认值:ClientModels
"modelsDir": "ClientModels"
}
FAQs
用于生成C#,RestApiClient客户端库的代码生成器
We found that csharp-rest-client-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.