moul / node-gitlab

DEPRECATED, see https://github.com/node-gitlab/node-gitlab
https://npmjs.org/package/gitlab
Other
470 stars 140 forks source link

Get all projects ambiguous #125

Closed ghost closed 8 years ago

ghost commented 8 years ago

Wouldn't it be better to use GET project/all instead of GET project to query all projekts?

geeeeeeeeek commented 8 years ago

I think it's a tradition to have REST apis like this. Use resources to get all, and resources/:res_id to get individual.

ghost commented 8 years ago

I mean, if you want to list all projects as shown in the example, you will just get all projects you have access to. Wouldn't it be good to provide the functionality to really get all projects ( off course you need admin rights) by using

 @get "projects/all", params, cb

as described in the API DOC