Robin Shen opened 3 years ago
|
|||||
OneDev referenced from other issue 3 years 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? |
|||||
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. |
|||||
@robin 感谢作者辛苦开源,RESTful API 还有其他扩展作用,比如可以根据API去扩展统计数据(自定义统计所有用户的代码提交数据,根据提交数据定位分支等等)。 |
|||||
Robin Shen changed milestones 3 years ago
|
|||||
When will this function be released? |
|||||
I plan to get it out before end of this year |
|||||
OneDev changed state to 'Closed' 3 years ago
|
|||||
OneDev changed state to 'Released' 3 years ago
|
|||||
For details about RESTful API, please check |
|||||
@robin you roxxxx !! |
Type |
New Feature
|
Priority |
Normal
|
Assignee |
RESTful api to interact with OneDev server for instant to access project information