前言
最近同事在使用 ABP 時,查看 ABP 自動產生的 Web API Route 覺得怪怪的!
他的 ApplicationService 名稱為 OrganizationalUnitAppService
,
其中有一個 Method 為 IEnumerable<OrganizationalUnitDto> GetAllOrganizationalUnits(string companyId)
,
結果出來的 Web API Route Path 為,/api/app/organizational-unit/organizational-units/{companyId}
,
名稱中間怎麼用 - 串起來,而且 GetAll 怎麼不見了?