diff options
author | Angelo Lakra <alakra@comverge.com> | 2013-10-03 12:26:10 -0600 |
---|---|---|
committer | Angelo Lakra <angelo.lakra@gmail.com> | 2013-10-08 00:43:14 -0600 |
commit | 519cce2c5149c21cf571ef73c974bffbef1a6398 (patch) | |
tree | 99e7b13c85d0ed94faf7225d3d122151d43bba91 /lib/api/entities.rb | |
parent | fc49034fb454a88626e4e705520c2eb686c6594f (diff) | |
download | gitlab-ci-519cce2c5149c21cf571ef73c974bffbef1a6398.tar.gz |
Adding Project manipulation support via API
* The following actions are now supported:
GET /projects/:id - returns information about a project
GET /projects - returns list of all projects
PUT /projects/:id - updates project information (see docs for more info)
DELETE /projects/:id - removes a project
POST /projects/:id/runners/:runner_id - links a project to a runner
DELETE /projects/:id/runners/:runner_id - removes link between project and runner
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 59108da..3f65a44 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -11,5 +11,9 @@ module API class Project < Grape::Entity expose :id, :name, :timeout, :scripts, :token, :default_ref, :gitlab_url, :always_build, :polling_interval, :public, :ssh_url_to_repo, :gitlab_id end + + class RunnerProject < Grape::Entity + expose :id, :project_id, :runner_id + end end end |