skv
a3f645ef51
Remove deprecated finders
2014-01-19 23:39:56 +04:00
Dmitriy Zaporozhets
efa10c819d
Replace context with service in lib
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-01-16 20:35:21 +02:00
Maxime Brugidou
56d4788264
Add import_url param in API projects create
2013-12-09 11:07:32 +01:00
Jason Hollingsworth
d9bb4230cc
Adding authenticated public mode (internal).
...
Added visibility_level icons to project view (rather than just text).
Added public projects to search results.
Added ability to restrict visibility levels standard users can set.
2013-11-26 22:22:07 -06:00
Dmitriy Zaporozhets
a09fc160d0
Add project.all for API if admin
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-18 14:15:59 +02:00
Dmitriy Zaporozhets
cfa15d0846
Remove default_branch support from API project creation
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-06 19:14:11 +02:00
Dmitriy Zaporozhets
c8e7d6df79
API: new feature - remove project[D
2013-10-09 14:41:41 +03:00
Izaak Alpert
04c7c262a7
Used pagnation function from api helpers
...
Change-Id: I1bdd3608d3b46924b5da3ae282c99f85ee4e0dab
2013-09-24 09:22:46 -04:00
Izaak Alpert
4cfbfbb845
Added search for projects by name to api
...
GITLAB-1283 (GITLAB-869)
Change-Id: I611e7e93f6292de08e1edc8d3ea77cf9087b6ded
Conflicts:
config/initializers/1_settings.rb
2013-09-23 19:36:25 -04:00
Dmitriy Zaporozhets
d6aec3fc1a
Allow specify path when create project via api
2013-08-14 13:41:06 +03:00
Angus MacArthur
ace5c54ab9
enhance project creation apis to allow setting of public attribute
...
Change-Id: Ib71ce8cf993627eada63d7d596fb302ec702f36e
2013-07-12 12:10:42 -04:00
Dmitriy Zaporozhets
8cdfa86b57
Merge pull request #3993 from bke-drewb/3599
...
Issue 3599: Add snippets_enabled flag to projects for API
2013-07-11 09:54:15 -07:00
Angus MacArthur
ea5a006f27
Additon of apis for fork administration.
...
Added ability to add and remove the forked from/to relatioinship
between existing repos.
2013-07-08 17:34:00 -04:00
Drew Blessing
31b06ebd01
Issue 3599: Add snippets_enabled flag to projects for API
...
s 3599: Add snippets_enabled flag to projects for API
Replace missing comma
2013-06-11 21:38:02 -05:00
Dmitriy Zaporozhets
8df699a336
API: project events
2013-06-06 19:19:17 +03:00
Dmitriy Zaporozhets
b05600f28b
Split Project api on several parts: deploy_keys, hooks, snippets etc
2013-06-06 12:37:51 +03:00
babatakao and baba
37a90d5f76
Selectable deploy keys contain master projects
2013-06-05 02:59:30 +09:00
Dmitriy Zaporozhets
bcc4e4dc7e
Merge branch 'gist' of https://github.com/Andrew8xx8/gitlabhq into Andrew8xx8-gist
...
Conflicts:
Gemfile.lock
app/models/ability.rb
app/models/project.rb
app/views/snippets/_form.html.haml
db/schema.rb
features/steps/shared/paths.rb
spec/factories.rb
spec/models/project_spec.rb
2013-06-04 18:36:22 +03:00
Dmitriy Zaporozhets
0611c5c612
Fix deploy key api 500 if key is empty
2013-06-03 21:01:07 +03:00
Dmitriy Zaporozhets
50e8d6c0c0
Add api to collect owned user projects. Api deploy_key.create: Enable deploy key if it exist in other owned project
2013-06-03 19:49:04 +03:00
Dmitriy Zaporozhets
068cf2f467
split repositories and projects api
2013-05-23 12:23:47 +03:00
Dmitriy Zaporozhets
634cbd7138
Refactor API classes. So api classes like Gitlab::Issues become API::Issues
2013-05-14 15:33:31 +03:00
Nihad Abbasov
77d0e41df0
fix API route to delete project hook
2013-05-07 00:09:23 +05:00
Dmitriy Zaporozhets
4528fa9817
modify api to work with new deploy keys
2013-05-06 16:24:58 +03:00
Dmitriy Zaporozhets
dfeef6c228
Fixed API file raw functionality, Fixed tree controller tests. Added BlobController specs
2013-04-03 15:55:08 +03:00
Dmitriy Zaporozhets
541d899410
Project.repository should never be nil so you can call repository.exists? or repository.empty?
...
Also specify separate project factory for project with filled repo
2013-04-01 16:56:25 +03:00
Andrew8xx8
d4543eb5a7
Tests fixed
2013-03-25 11:20:14 +04:00
Alex Denisov
28e7d1a8bf
Abilities added to /user and /sign_in requests
2013-03-18 20:11:28 +00:00
Sebastian Ziebell
ecf53bb9e6
API: fixes project creation and removed redundant info
2013-03-07 15:11:33 +01:00
Sebastian Ziebell
3374027e3a
Merge branch 'master' into fixes/api, code clean up and tests fixed
...
Conflicts:
doc/api/projects.md
spec/requests/api/projects_spec.rb
2013-03-07 14:51:56 +01:00
Dmitriy Zaporozhets
7c408960ce
Merge pull request #3146 from amacarthur/AdminAPIs
...
Additional Admin APIs
2013-03-06 22:57:24 -08:00
Sebastian Ziebell
b5ef6d2268
API: refactored and simplified error handling in merge requests API
2013-03-05 23:43:05 +01:00
Sebastian Ziebell
cce35b6d05
Fixes api
2013-03-05 22:33:45 +01:00
Sebastian Ziebell
61cfa2a7a6
Merge branch 'master' into fixes/api
...
Conflicts:
lib/api/projects.rb
2013-03-05 22:29:49 +01:00
Matt Humphrey
f411772e33
Project deploy keys API
2013-03-05 21:23:29 +00:00
Angus MacArthur and Angus MacArthur
61ffcab60f
Additional Admin APIs
2013-03-05 10:38:43 -05:00
Matt Humphrey
1c0c7bd6e3
Missed comma.
2013-03-01 16:36:19 +00:00
Matt Humphrey
dd653f62f3
Added namespace_id to project creation via API
...
This allows you to set the namespace ID for projects via the the API. By default it is created for the current user. You can assign it to the global namespace by passing `GLN` which translates to 'Global Namespace'.
2013-03-01 16:34:11 +00:00
Sebastian Ziebell
3bb342b961
Merge branch 'master' into fixes/api
2013-02-27 17:52:59 +01:00
Sebastian Ziebell
7499f65014
API: extracted helper method to validate required parameters, code clean up
...
Added a helper method to check if required parameters are given in an API call. Can be used
to return a `400 Bad Request` return code if a required attribute is missing.
Code clean up and fixed tests.
2013-02-27 17:50:30 +01:00
Nihad Abbasov
3c5954b8c8
proper fix for #2300
2013-02-27 06:47:04 -08:00
Sebastian Ziebell
07f306d8af
Merge branch 'master' into fixes/api
2013-02-27 15:15:47 +01:00
Nihad Abbasov
8d847b89d2
API: fix commits pagination
...
closes #2300
2013-02-27 06:00:33 -08:00
Sebastian Ziebell
e119b0a0cb
API repository documentation updated, includes infos to return codes
...
The API documentation of repository is updated and now contains infos to status codes.
Code documentation is also adjusted for `GET /projects/:id/repository/commits` and includes infos to
pagination attributes. Tests are updated.
2013-02-27 11:24:12 +01:00
Sebastian Ziebell
f0e417091c
Merge branch 'master' into fixes/api
...
Conflicts:
spec/requests/api/projects_spec.rb
2013-02-20 14:30:11 +01:00
Sebastian Ziebell
eefb27f5ae
Merge branch 'master' into fixes/api
...
Conflicts:
spec/requests/api/projects_spec.rb
2013-02-20 12:43:32 +01:00
Matt Humphrey
33c513274d
Fix RESTfulness of project hook deletions by API
2013-02-20 11:35:36 +00:00
Sebastian Ziebell
e9d3b96595
API: fixes visibility of project hook
...
When a user is not authorized to see the list of hooks for a project, he is
still able to access the hooks separately. For example if access to
`GET /projects/:id/hooks` fails and returns a `403 Unauthorized` error it is
still possible to access a hook directly via `GET /projects/:id/hooks/:hook_id`.
Fixes access, also added tests to check access and status codes of hooks.
2013-02-16 14:42:49 +01:00
Sebastian Ziebell
c305eb31aa
API: tests that check status codes for project branches and hooks
...
Status code 422 (Unprocessable Entity) returned if invalid url is given when creating
or updating a project hook.
2013-02-14 16:55:33 +01:00
Sebastian Ziebell
6df02adc7a
API: status code 403 returned if new project would exceed limit
...
When the project limit is reached the user is not allowed to create new ones.
Instead of error code 404 the status code 403 (Forbidden) is returned with error
message via API.
2013-02-14 15:51:56 +01:00