Douwe Maan
8c3ba8d6c9
Add workhorse controller and API helpers
2016-06-06 13:16:30 +02:00
Grzegorz Bizon
080997d87e
Enable Lint/AmbiguousOperator rubocop cop
...
See #17478
2016-06-03 10:59:43 +02:00
Robert Speicher
cba2c437e5
Move RepositoryArchiveCacheWorker to sidekiq-cron
...
Closes #15105
2016-04-12 11:12:05 -04:00
Jacob Vosmaer
34a6f83d3e
Fix API
2016-02-11 18:10:14 +01:00
Jacob Vosmaer
771f14b96e
First version of "git archive" headers
2016-02-02 14:09:55 +01:00
Jacob Vosmaer
02afa6793c
Use only one header to send git blobs
2016-02-01 11:33:22 +01:00
Jacob Vosmaer
26d97ac5e1
Send more raw blob data with workhorse
2016-01-28 18:04:46 +01:00
Dmitriy Zaporozhets
a5ab56fd91
Move git tags API to separate file
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-12 15:41:13 +01:00
Jacob Vosmaer
cb13980db8
Let gitlab-git-http-server handle archive downloads
...
This change relies on changes in gitlab_git and gitlab-git-http-server.
2015-10-08 17:12:00 +02:00
Douwe Maan
8ed7ac9d44
Use project.commit convenience method.
2015-04-24 12:29:36 +02:00
Douwe Maan
2cfd0b59ae
Archive repositories in background worker.
2015-03-31 12:52:20 +02:00
jubianchi
39e54e21cb
Handle errors on API when a project does not have a repository ( Closes #6289 )
2015-01-19 14:13:30 +01:00
Marin Jankovski
7240150c89
Forward the messages in api response.
2014-12-30 15:17:46 +01:00
Sean Edge
822d9aa6ba
Create RepoTag Grape entity and present it when doing stuff with tags via API. Update API doc for repositories. Add tag message to tag list page in UI. Update Changelog. Update spec to set .gitconfig identity, required for annotated tags.
2014-10-30 09:48:23 -04:00
Ciro Santilli
ad47993ac4
Factor error and success methods from services.
2014-09-21 11:43:05 +02:00
Dmitriy Zaporozhets
3162140dfa
Fix tag tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-05 09:36:11 +03:00
Sean Edge
468b2e8e0b
Added annotated tags. Updated tag haml file and call to gitlab-shell. Updated API for annotated tags. Added tests for API. Strip leading/trailing whitespace from message, if present. Update CHANGELOG.
2014-09-04 09:47:20 -04:00
Robert Schilling
392113919a
Validate tag-names and references in WebUI, API
2014-09-03 13:08:36 +02:00
Dmitriy Zaporozhets
1d63464c82
Fix repository archive
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-08-13 21:28:22 +03:00
Dmitriy Zaporozhets
2f780af246
Git::Compare does not have limit param any more
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-29 14:29:59 +03:00
Dmitriy Zaporozhets
767bd78081
Use Contributor class instead of hash
2014-07-02 15:09:06 +03:00
Dmitriy Zaporozhets
5a88873e5c
Move API contributors logic to repository model
2014-07-02 14:43:23 +03:00
Dmitriy Zaporozhets
81d41c0f92
Collect contributors info via API
2014-07-02 12:40:20 +03:00
Dmitriy Zaporozhets
2e3818f14f
Add contributors API endpoint
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-02 09:49:10 +03:00
Dmitriy Zaporozhets
6fdd900827
Merge pull request #7014 from asedge/api_create_tag
...
Add CreateTagService. Use new service to allow tag creation through API.
2014-05-29 15:37:42 +03:00
Dmitriy Zaporozhets
10ee137e9c
Expose timeout and same_ref compare fields
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-27 11:16:50 +03:00
Dmitriy Zaporozhets
f441436e53
Add compare branches endpoint to API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-26 16:08:22 +03:00
Sean Edge
1e6766f9ed
Add CreateTagService. Use new service to allow tag creation through API.
2014-05-23 11:02:47 -04:00
Dmitriy Zaporozhets
9b276f0003
Move branches api to separate class
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-31 16:31:53 +03:00
Jacob Vosmaer
200eeea258
Make the repository downloads path configurable
2014-03-31 12:19:37 +02:00
Dmitriy Zaporozhets
8686d09d3e
Merge branch 'feature/api_fle_encoded' into 'master'
...
Complete api files CRUD
Adds ability to read file from repository with content encoded with Base64.
2014-02-18 14:15:40 +00:00
Dmitriy Zaporozhets
6cf39fe10d
Extract commits API to separate file
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-18 12:41:21 +02:00
Dmitriy Zaporozhets
3c742dad27
Fixed bug with json files content being escaped in api
...
After update to recent grape env['api.format'] does not work any more.
Use content_type for rendering raw json files content
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-18 11:40:45 +02:00
Dmitriy Zaporozhets
97a4d8aea4
Improve code according to new gitlab_git
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-04 14:46:15 +02:00
skv
a3f645ef51
Remove deprecated finders
2014-01-19 23:39:56 +04:00
Dmitriy Zaporozhets
f19cdee8cc
Remove commit_load_context.rb
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-15 15:06:12 +02:00
Dmitriy Zaporozhets
1c0929f5ac
Merge pull request #5823 from bobot/feature/api_parent_ids
...
[API] add parent_ids to specific commit informations
2014-01-06 06:15:48 -08:00
Jason Hollingsworth
7cc2520541
Add support for various archive formats.
...
Used mime-types gem instead of hardcoding content types.
Allow multiple extensions in archive route (.tar.gz, .tar.bz2).
Change content disposition from infile(?) to attachment for api.
Fixed api would return “archive” instead of {project}-{hash}.{ext}
2014-01-02 10:18:56 -06:00
Thom Gerdes
27912f9c21
Add api support for raw blob search
...
See issue
http://feedback.gitlab.com/forums/176466-general/suggestions/4566001-expose-raw-object-search-via-the-gitlab-api
2013-12-26 08:54:13 -05:00
François Bobot
7b3b63d4d4
[API] add parent_ids to specific commit informations
2013-12-11 14:41:07 +01:00
Izaak Alpert
a00c534c4c
Fix a bug where the tgz returned got encoded utf8
...
Conflicts:
doc/api/repositories.md
Change-Id: I7ebc39b47ff860813d9622ba6776583536e6e384
2013-10-10 09:19:28 -04:00
Izaak Alpert
ce21d8688d
feature API call to download repo archive
...
defaults to HEAD
Conflicts:
spec/requests/api/repositories_spec.rb
Change-Id: Id114aca6c59d75f18e49bf9f33809a04e010bfb6
2013-10-10 09:19:28 -04:00
Dmitriy Zaporozhets
1d3f03fb69
Fix blob and repo stuff after gitlab_git v3
2013-10-01 18:26:55 +03:00
Dmitriy Zaporozhets
726fa6c76a
Respect authorization in Repository API
...
* dont allow protect/unprotect branches for users without master permissions
* dont allow access to Repository api for guests
2013-09-29 16:04:57 +03:00
Alex Van't Hof
59f428dca2
Standardize commit diff api url, change blob api url, add get single commit
...
Use "/commits/:sha/diff" as opposed to "/commit/:sha", keeping in line
with existing api urls (e.g. "/projects/:id", etc.)
Fix 500 error resulting from a diff api call with an invalid commit hash
Move "/commits/:sha/blob" to "/blobs/:sha", leaving the old path for
backwards compatibility.
Add ability to get a single commit via "/commits/:sha"
2013-08-27 21:22:42 -04:00
Gabor Nagy
d139cc6b32
Adds feature: get a diff via API.
2013-08-25 23:48:11 +02:00
Dmitriy Zaporozhets
da6f4f06c7
API: implement retrieve of repository tree
2013-06-06 18:01:03 +03:00
Dmitriy Zaporozhets
cf9a366e22
API: Fix repository commits pagination
2013-06-06 16:16:49 +03:00
Dmitriy Zaporozhets
9351a295c1
Up grape version. Fix issue with raw content being escaped
2013-05-27 17:14:47 +03:00
Dmitriy Zaporozhets
068cf2f467
split repositories and projects api
2013-05-23 12:23:47 +03:00