【发布时间】:2019-11-22 00:00:25
【问题描述】:
我有模块化 API
MyProject.Modules
Module1
Logic and Repositories
Module2
Logic and Repositories
MyProject.RestApi
Controllers
我创建了 1 个版本的 REST API(使用 ID(int 作为 ID))
我想创建一个使用 UUID 的新版本(前一个保留) 还会有新的端点
如何处理模块?
对于新版本的 API,我将不得不更改存储库中的数据库查询、命名方法等。
您会为新的 API 版本创建新模块还是其他解决方案是正确的?
【问题讨论】:
标签: c# rest api asp.net-core architecture