![]() |
Robin Shen opened 2 months ago
|
||||
Referenced from other issue 2 months ago
|
|||||
|
Michael Weimann commented 2 months ago
Funny thing. I thought about that in the past days as well. If you want I could so some research if there is an api where to "borrow" some ideas from (e.g. GitLab, GitHub, Gitea, BitBucket/JIRA). In my opinion a versioned endpoint is mandatory, e.g. starting with Is there a special use-case the original reporter (Yu) wants to solve at the beginning? |
||||
![]() |
Robin Shen commented 2 months ago
Thanks for willing to help. The user originally asking for this functionality wants to get git clone address of all projects. @rechardwang @aaronuu please correct me if I am wrong. OneDev currently has a draft api skeleton based on Jersey: Currently restful resource endpoints convert OneDev model (project, build etc) from/to json via Jackson serialization. This has the benefit of almost zero maintenance as api input/output will be changed automatic upon model change (adding/removing/renaming field etc). However the api is currently not be versioned. I am thinking of versioning the api automatically and get api input migrated automatically to latest version something like what I have done in DataMigrator.java for database backup/restore to minimize api maintainance overhead. |
||||
|
YU ZHANG commented 1 month ago
@robin 感谢作者辛苦开源,RESTful API 还有其他扩展作用,比如可以根据API去扩展统计数据(自定义统计所有用户的代码提交数据,根据提交数据定位分支等等)。 |
||||
![]() |
Robin Shen changed milestone 1 month ago
|
RESTful api to interact with OneDev server for instant to access project information