Robert Schilling
86c58687b2
Return 204 for delete endpoints
2017-02-28 08:32:38 +01:00
Robert Schilling
e7551214f3
API: Remove DELETE projects/:id/deploy_keys/:key_id/disable
2017-02-20 09:33:42 +01:00
Robert Schilling
c70dfbc686
Add a custom pagination matcher
2017-02-16 15:38:40 +01:00
Robert Schilling
18417c9ee8
Grapify all endpoints of the deploy keys API
2017-01-23 17:06:57 +01:00
Rémy Coutable
9c560b5cdf
Replace many :project with :empty_projects in API specs
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-17 11:41:27 -05:00
Rémy Coutable
4e249d5bae
Use :maximum instead of :within for length validators with a 0..N range
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-06 10:23:17 +01:00
Livier
eb4f15571d
Changed API spec files to describe the correct class
...
Restore changes for api spec files
Fix error in rspec Users
Delete extra space Repositories-spec
2016-11-28 10:55:27 -07:00
Joshua Welsh
ce4760bbd5
Fixes various errors when adding deploy keys caused by not exiting the control flow.
...
When adding a deploy key that already exists in the project the existing key would not be returned, resulting in an attempt to create a new one, which in turn caused a 500 error due to an ActiveRecord exception.
When adding a deploy key that exists within another project the key would be joined to the project, but would also attempt to create a new one, which resulted in a 400 error due to the key already existing.
Fixes #22741
Fixes #21754
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-26 12:54:47 +02:00
Z.J. van de Weg
554e18ab02
Create service for enabling deploy keys
2016-08-05 11:38:17 +02:00
Z.J. van de Weg
460065b743
Move deploy_key tests to deploy_key_spec.rb
...
Also, fix the failing test in the process
2016-08-04 16:55:20 +02:00
Z.J. van de Weg
2b6bd6a33f
Use Grape DSL for deploy keys endpoints
...
Also a minor clean up of the post endpoint
2016-08-03 21:04:14 +02:00
Z.J. van de Weg
da3d3ba89c
Endpoints to enable and disable deploy keys
...
Resolves #20123
2016-08-03 16:00:22 +02:00