Files
LabelChange-server/README.md
2026-06-01 16:30:29 +08:00

28 lines
801 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# LabelReplaceServer
Minimal scaffold for Tag replacement service.
Build & run:
```powershell
cd src\LabelReplaceServer.Api
dotnet run
```
API: POST /api/tag/replace
Body: { "text": "Hello {{name}}", "variables": { "name": "World" } }
# LabelReplaceServer
简单的 .NET 后端示例,用于标签替换服务。
快速运行PowerShell / CMD
```powershell
cd /d D:\EPproject\LabelReplaceServer
# (可选)创建 solution 并添加项目
dotnet new sln -n LabelReplaceServer
# 构建并运行 API
dotnet restore
dotnet build src\LabelReplaceServer.Api\LabelReplaceServer.Api.csproj
dotnet run --project src\LabelReplaceServer.Api\LabelReplaceServer.Api.csproj
```
API 根路由GET `/` 返回 Hello WorldPOST `/api/label/replace` 接受替换请求。