Commit Graph

522 Commits

Author SHA1 Message Date
GitLab Bot ac1dca43ba Add latest changes from gitlab-org/gitlab@master 2020-03-09 12:07:45 +00:00
GitLab Bot 561e1b470f Add latest changes from gitlab-org/gitlab@master 2020-03-02 21:08:01 +00:00
GitLab Bot 736d36d859 Add latest changes from gitlab-org/gitlab@master 2020-02-28 15:09:13 +00:00
GitLab Bot f54a50aa82 Add latest changes from gitlab-org/gitlab@master 2020-02-28 00:09:08 +00:00
GitLab Bot 211a8c3361 Add latest changes from gitlab-org/gitlab@master 2020-02-07 12:09:13 +00:00
GitLab Bot 0eb3d2f799 Add latest changes from gitlab-org/gitlab@master 2020-02-06 15:09:11 +00:00
GitLab Bot 20d564f106 Add latest changes from gitlab-org/gitlab@master 2020-02-05 12:09:15 +00:00
GitLab Bot d8121cb00b Add latest changes from gitlab-org/gitlab@master 2020-01-30 18:08:57 +00:00
GitLab Bot 536aa3a1f4 Add latest changes from gitlab-org/gitlab@master 2020-01-30 15:09:15 +00:00
GitLab Bot 50ae406553 Add latest changes from gitlab-org/gitlab@master 2020-01-30 12:08:54 +00:00
GitLab Bot c282dba898 Add latest changes from gitlab-org/gitlab@master 2020-01-24 15:09:00 +00:00
GitLab Bot 2c2dd5e36c Add latest changes from gitlab-org/gitlab@master 2020-01-24 12:09:01 +00:00
GitLab Bot 5ad0cf2655 Add latest changes from gitlab-org/gitlab@master 2020-01-23 12:08:38 +00:00
GitLab Bot ccaa944882 Add latest changes from gitlab-org/gitlab@master 2020-01-23 03:08:53 +00:00
GitLab Bot eb30dd6e28 Add latest changes from gitlab-org/gitlab@master 2020-01-13 12:08:04 +00:00
GitLab Bot e0b84f4ba4 Add latest changes from gitlab-org/gitlab@master 2020-01-08 21:08:08 +00:00
GitLab Bot 2b3bfe8fc5 Add latest changes from gitlab-org/gitlab@master 2020-01-08 00:07:43 +00:00
GitLab Bot c2b98d3dbd Add latest changes from gitlab-org/gitlab@master 2019-12-17 15:08:15 +00:00
GitLab Bot 5bd24a54ef Add latest changes from gitlab-org/gitlab@master 2019-12-17 09:07:48 +00:00
GitLab Bot 6af29c941a Add latest changes from gitlab-org/gitlab@master 2019-12-16 00:07:33 +00:00
GitLab Bot 6b8040dc25 Add latest changes from gitlab-org/gitlab@master 2019-12-11 09:08:12 +00:00
GitLab Bot 330eac18ce Add latest changes from gitlab-org/gitlab@master 2019-12-09 03:07:57 +00:00
GitLab Bot 143f196f8b Add latest changes from gitlab-org/gitlab@master 2019-11-18 18:06:53 +00:00
GitLab Bot 3fe3436877 Add latest changes from gitlab-org/gitlab@master 2019-11-15 06:06:13 +00:00
GitLab Bot 11faf8ae72 Add latest changes from gitlab-org/gitlab@master 2019-10-23 21:06:17 +00:00
GitLab Bot eadb77d89f Add latest changes from gitlab-org/gitlab@master 2019-10-07 18:06:24 +00:00
GitLab Bot 82a534c245 Add latest changes from gitlab-org/gitlab@master 2019-09-19 06:06:09 +00:00
GitLab Bot b082790134 Add latest changes from gitlab-org/gitlab@master 2019-09-18 18:06:14 +00:00
GitLab Bot 80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
GitLab Bot 48c77599ca Add latest changes from gitlab-org/gitlab@master 2019-09-17 00:06:11 +00:00
Ben Bodenmiller 63997c2ca9 Add EE label to repository_storage 2019-09-10 10:30:05 +00:00
Marcel Amirault d642c60df9 Add backticks and remove square brackets
Square and Angle bracket use causes kramdown warnings,
so changed or enclosed in backticks as needed
2019-08-26 20:17:51 +00:00
Marcel Amirault 7e4a6f57a9 Update capitalization in admin, api, others
Update capitalization in /administration, /api, /ci
and /customization
2019-08-23 08:50:24 +00:00
Nick Thomas f7f91e84f7 Add a skip_users filter to the project users API
This functionality is available in the /autocomplete users pseudo-API.
We're attempting to replace that with the canonical API, so it needs
support for this parameter too.
2019-08-19 14:21:56 +05:30
Stan Hu 3ad34c3a24 Merge branch '20137-starrers' into 'master'
Add possibilty to view starrers ("stargazers") of a repository & any user's starred repositories

Closes #20137

See merge request gitlab-org/gitlab-ce!24690
2019-08-08 04:40:55 +00:00
Camil Staps 73e6ba448d
Address reviewer comments 2019-08-07 20:49:17 +02:00
Camil Staps e8bdcdf0f8
Expose time since starring on project/:id/starrers API endpoint; exclude private profiles here as well 2019-08-07 20:49:16 +02:00
Camil Staps e7c34c37c8
Add documentation and changelog for !24690 2019-08-07 20:49:15 +02:00
Thiago Presa 3588d7eec2 Updating description of the option 2019-08-07 00:13:14 -03:00
Thiago Presa 4b486bf220 Add docs for reject_unsigned_commits (premium only) 2019-08-07 00:13:14 -03:00
Imre Farkas feb571a1dd Doc for "Move external authorization service API management to EE" 2019-07-18 01:19:46 +00:00
Cindy Pallares 🦉 275f37030f Include merge method link in attribute description
Currently, the project visibility methods attribute description link to
the descriptions and options for visibility methods. The merge methods
attribute description doesn't should do the same.
2019-07-10 03:08:15 +00:00
Douglas Barbosa Alexandre 2615265ef8
Merge branch 'master' into sathieu/gitlab-ce-project_api 2019-07-09 14:45:46 -03:00
Maikel 4d8f28f6e9
Document the negative commit message push rule for the API. 2019-07-09 17:01:14 +01:00
Marcel Amirault 73c6477b7e Changing badges to use parentheses not brackets
Previously, we used brackets to denote the tier badges,
but this made Kramdown, the docs site Markdown renderer,
show many warnings when building the site. This is now
fixed by using parentheses instead of square brackets.

This was caused by [PREMIUM] looking like a link to
Kramdown, which couldn't find a URL there.

See:
- https://gitlab.com/gitlab-com/gitlab-docs/merge_requests/484
- https://gitlab.com/gitlab-org/gitlab-ce/issues/63800
2019-07-08 08:50:38 +00:00
Marcel Amirault 8ac2c3ef43 Clean up EE api docs that were merged to CE
Many small fixes to api docs which were merged from EE to CE,
and tables cleaned up, as noted in issue
https://gitlab.com/gitlab-org/gitlab-ce/issues/64072
2019-07-04 08:22:41 +00:00
Nick Thomas 203ef33639
Reduce changes to doc/api/projects.md 2019-07-04 09:08:35 +01:00
Mathieu Parent d529c8f622 Update json for "Get single project" doc 2019-07-03 16:18:05 +02:00
Mathieu Parent e44167004d Add auto_devops_* to project API
The auto_devops object sometimes doesn't exists. We may need to create
it.
2019-07-03 16:18:05 +02:00
Mathieu Parent 5028f5d73d Add auto_cancel_pending_pipelines to project API 2019-07-03 16:18:05 +02:00
Mathieu Parent 5f04d24934 Add build_coverage_regex to project API 2019-07-03 16:18:05 +02:00
Mathieu Parent a7892e7171 Add build_timeout to project API 2019-07-03 16:18:05 +02:00
Mathieu Parent 353e68772c Add build_git_strategy attribute to project API
We map the boolean to the string 'fetch' or 'clone', to be more
explicit.
2019-07-03 16:18:05 +02:00
Mathieu Parent 26b7b47558 Add *_access_level to project API
- issues_access_level
- repository_access_level
- merge_requests_access_level
- builds_access_level
- wiki_access_level
- snippets_access_level
2019-07-03 16:18:05 +02:00
Marcel Amirault a347d15972 Update api docs to finish aligning EE and CE docs
Squashing a few commits and continuing work
on merging the 12 api docs that have not
been ported to CE yet.
2019-07-03 09:32:54 +00:00
Fabio Pitino 3ac527b488 Expose ci_default_git_depth via project API
Enable Get and Update of ci_default_git_depth for
Project API.

Renaming Project#default_git_depth to :ci_default_git_depth
to give more context through the API usage.

Add API documentation
2019-06-12 09:51:45 +01:00
Peter Marko 40490cc492 Add wiki size to project statistics 2019-05-29 16:08:25 +02:00
Mayra Cabrera 1dd4a00780 Adds namespace information to project endpoint
- Namespace now return avatar_url and web_url
- NamespaceBasic entity was modified to include avatar_url and web_url,
information is fetched differently depending if the Namespace is a user
or a group

Includes documentation changes

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39858
2019-04-18 19:00:48 -05:00
Balasankar "Balu" C 39f77ad9b4
Let users set name/path on project fork using API 2019-02-20 00:19:27 +05:30
Dylan MacKenzie b421bd316f Add programming language filtering to `/projects` 2019-02-04 15:06:17 +00:00
Mathieu Parent 542e26fec0 Add group full path to project's shared_with_groups 2019-01-15 21:09:05 +01:00
Evan Read d98560c1f5 Make unordered lists conform to styleguide
- Also makes other minor Markdown fixes that were near the main fixes.
2019-01-08 12:21:09 +10:00
Achilleas Pipinellis 0e078d1a8a
Replace look-alike token with '<your_access_token>'
Replace all '9koXpg98eAheJpvBs5tK' occurrences with
'<your_access_token>' in API docs.
2019-01-04 13:19:27 +01:00
Blair Lunceford 38c3791e0a When creating or updating a user, use public_builds attribute rather than public_jobs attribute in API. 2018-11-19 16:54:24 +00:00
J.D. Bean ff89680330 Feature/add license to project API 2018-10-26 15:12:14 +00:00
Steve 175f689eb7 Initialize projects with readme 2018-09-12 13:58:31 +00:00
Dmitriy Zaporozhets 464b0de1ac Merge branch 'filter-web-hooks-by-branch' into 'master'
Filter web hooks by branch

See merge request gitlab-org/gitlab-ce!19513
2018-09-05 13:39:41 +00:00
Klaus Frank f051ba6938
Correct wrong required condition in doc/api/projects.md
Originally submitted at
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6054.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-08-29 17:35:39 +02:00
Toon Claes f4f321b902 Clean up LFS objects when creating fork relation
A forked project stores its LFS objects in the `forked_from_project`.
So the LFS objects become inaccessible, and therefore delete them from
the database so they'll get cleaned up.

To be refactored when implementing
https://gitlab.com/gitlab-org/gitlab-ce/issues/39769
2018-08-20 16:39:32 +02:00
Toon Claes 7c9983c721 Allow project owners to set up forking relation through API
Before this change only GitLab admins where allowed to set up forking
relation through the API. This changes that so project owners can
do this too.

Closes gitlab-org/gitlab-ce#40550.
2018-08-20 16:25:02 +02:00
Duana Saskia ece6a1ea6e Filter project hooks by branch
Allow specificying a branch filter for a project hook and only trigger
a project hook if either the branch filter is blank or the branch matches.
Only supported for push_events for now.
2018-08-13 13:20:58 +02:00
Davin Walker 11e08d4bd0 clarify user namespace 2018-08-09 20:31:19 +00:00
Marko, Peter 6d72bb3832 Add min_access_level filter to projects API
Signed-off-by: Marko, Peter <peter.marko@siemens.com>
2018-07-23 20:57:50 +02:00
Francisco Javier López c52ab9141c Fix gitlab import project load 2018-07-23 07:52:15 +00:00
Valery Sizov c3c7f26a34 Backport of gitlab-org/gitlab-ee!6137 2018-07-19 18:32:12 +00:00
Kaspar Emanuel 75e1f25638 Fix API docs on unauthenticated projects return 2018-07-09 16:47:39 +01:00
Achilleas Pipinellis 6b02e36660
Mention the forked_from_project field in projects API 2018-07-05 11:28:38 +02:00
Aram Visser c3de6a8673 Add transfer project endpoint to the Projects API 2018-06-27 18:21:18 +07:00
Andrew Winata fbc9a1ac69 Docs clarify API to share project to a group 2018-06-01 15:02:52 +10:00
Francisco Javier López 4d3f7ae1ef
Removed API endpoint and specs 2018-05-30 18:23:07 +02:00
Imre Farkas 10237d458d Expose readme url in Project API 2018-05-22 10:53:37 +00:00
Nick Thomas 672733aa66
Add an API endpoint to download git repository snapshots 2018-04-19 17:25:01 +01:00
Roger Rüttimann e467a11ec7 Feature/add language in repository to api 2018-04-13 08:06:04 +00:00
Jan f6d58310fc Resolve "Allow the configuration of a project's merge method via the API" 2018-04-04 09:56:38 +00:00
Victor Wu 972dd479b3 Update docs for API for issue and merge request description templates 2018-04-02 09:31:13 +00:00
Francisco Javier López 8fe880dc06 Projects and groups badges API 2018-03-05 17:51:40 +00:00
Jean-Baptiste Guerraz 20844326f3 align "confidential issues events" implementation with "issues events" one 2018-03-01 10:51:56 +01:00
Thomas Dudouet ca7d338bff Correcting documentation about project hooks settings 2018-02-23 19:36:44 +00:00
Sean McGivern feab47e082 Merge branch '41899-api-endpoint-for-importing-a-project-export' into 'master'
Resolve "API endpoint for importing a project export"

Closes #41899

See merge request gitlab-org/gitlab-ce!17025
2018-02-16 14:05:51 +00:00
James Lopez 890d7b540b
update docs 2018-02-16 14:37:26 +01:00
James Lopez 0831949084
update missing doc links 2018-02-13 15:35:08 +01:00
Markus Koller b7cd99c376
Allow including custom attributes in API responses 2018-02-08 13:30:34 +01:00
Ville Skyttä 0cbbb08e79 doc: Spelling fixes 2018-01-19 12:09:59 +02:00
Markus Koller 6902848a9c
Support custom attributes on projects 2017-11-06 10:51:46 +01:00
Mark Fletcher 63e0a42317 Add an API endpoint to determine the forks of a project 2017-09-20 08:27:16 +10:00
Achilleas Pipinellis b97f9629ca Merge branch 'docs/cleanup-projects-api' into 'master'
Clean up projects API docs

See merge request !14071
2017-09-06 12:36:24 +00:00
Ashley Dumaine a3f76b76a4 change collapse to resolve and comments to discussions 2017-09-06 10:07:47 +01:00
Ashley Dumaine ef4b3a39bc Add functionality to collapse outdated diff comments regardless of discussion resolution 2017-09-06 10:07:46 +01:00
Achilleas Pipinellis 2247f11afd Clean up projects API docs 2017-09-06 10:21:16 +02:00
Oswaldo Ferreira 33dc5171e5 Resolve "More RESTful API: include resource URLs in responses" 2017-07-25 09:35:45 +00:00
Pablo Catalina ace95b1540 Update projects.md. Fix Search project by name format and added a curl example. 2017-07-19 09:58:47 +00:00
Rémy Coutable 050eae8c4d Merge branch '33657-user-projects-api' into 'master'
Add user projects API

Closes #33657

See merge request !12596
2017-07-06 09:18:06 +00:00
vanadium23 8d44d5142a Add user projects API 2017-07-06 08:04:54 +03:00
Lin Jen-Shin 9f5ac179d1 Rename ci_config_file to ci_config_path 2017-07-05 20:11:01 +08:00
Lin Jen-Shin d7c32c5870 Fix various descriptions given the feedback 2017-07-04 02:00:50 +08:00
Lin Jen-Shin 17ba052f5c Update wordings, allow only full path, add tests 2017-06-30 15:23:46 +08:00
Lin Jen-Shin 35674fcd47 Merge remote-tracking branch 'upstream/master' into 15041-Add-Custom-CI-Config-Path
* upstream/master: (12506 commits)
  Update CHANGELOG.md for 9.3.2
  Update architecture.md
  Fix changelog entry file extension
  Fix head pipeline stored in merge request for external pipelines
  updated gitlab-ci.yml to compile locale
  Ignore JSON files generated from PO files
  Update mmap2 gem tha disables mmap_obj.gsub! as current implementation uses method that is no longer part of Ruby API
  Disable rainbow during SimpleExecutor specs to have consistence
  Slightly refactor pipeline schedules form in preparation for additions
  Resolve "Submitting reply to existing diff discussion using Cmd/Ctrl+Enter submits twice and refreshes page"
  Make the SimpleExecutor rescue exceptions in the executing Checks
  Resolve "Unable to access edit comment from dropdown menu in certain screen sizes"
  Update changelog item
  revert removal of requestAnimationFrame and move to a separate MR/discussion
  rename getEmojiCategoryMap and remove unnecessary parameter
  Action Buttons on Prio Labels working again by setting pointer events to none on…
  Remove 'contains' option from Commit.find_all
  Remove Gitlab::Git::Repository#find_all
  Use latest chrome and chrome driver in GitLab QA
  Polish sidebar toggle
  ...
2017-06-28 15:53:12 +08:00
David Turner 1cd1bab3af add printing_merge_request_link_enabled to API 2017-06-19 13:33:15 -04:00
vanadium23 4ccd799832 Accept image for avatar in project API 2017-06-09 22:49:57 +03:00
Rémy Coutable 07fdabbc3a Merge branch 'dturner/grammar' into 'master'
Improve the grammar of the API docs

See merge request !11863
2017-06-09 16:10:06 +00:00
Achilleas Pipinellis acdd1bf7c9 Merge branch '28607-forking-and-configuring-project-via-api-works-very-unreliable' into 'master'
Confirm Project forking behaviour via the API

Closes #28607

See merge request !11931
2017-06-08 06:33:19 +00:00
Mark Fletcher cff037fd25 Confirm Project forking behaviour via the API
* It's unclear that the forking operation can still be ongoing
* `import_status` is available in Project Entity to determine status
2017-06-06 21:34:10 +08:00
Mark Fletcher ad3e180ed3 Introduce an Events API
* Meld the following disparate endpoints:
 * `/projects/:id/events`
 * `/events`
 * `/users/:id/events`
+ Add result filtering to the above endpoints:
 * action
 * target_type
 * before and after dates
2017-06-06 20:16:41 +08:00
Robin Bobbitt c2516115e3 Expose import_status in Projects API 2017-06-02 15:35:51 -04:00
David Turner 5250b7a6cd Improve the grammar of the API docs 2017-06-01 15:52:17 -04:00
vanadium23 0684073d1e Add tag_list param to project api 2017-05-31 09:02:33 +03:00
blackst0ne a7349560b2 'New issue'/'New merge request' dropdowns should show only projects with issues/merge requests feature enabled 2017-05-30 15:35:49 +11:00
Marcia Ramos 18a2928732 Add "API" to all respective headings (h1s) 2017-05-18 08:49:03 +00:00
Marcia Ramos d5eb66663e update API doc with +API (h1 heading) 2017-05-10 15:48:07 -03:00
Mark Fletcher 21f5515a5f Expose project statistics on single requests via the API
+ The statistics parameter was already accepted
* This commit ensure that it is respected for GET /projects/:id endpoint
+ Add documentation of the parameter and update the example response for stats
2017-05-03 18:45:19 +08:00
Mark Fletcher 3aca8b6557 Update Projects API documentation to include statistics parameter
* Only supported for the GET /projects endpoint
2017-05-01 17:39:42 +08:00
Marion Deveaud d81c355aab docs(api): add curl arguments for file upload 2017-04-21 13:43:40 +02:00
Achilleas Pipinellis b472f9995a Fix wrong copy edits for URL-encoded substitutions in API docs 2017-04-10 11:17:04 +02:00
Achilleas Pipinellis 5422554b86 Mention URL path encoding to all API docs 2017-04-08 12:38:59 +02:00
Dawid Goslawski 82fad17a7d Add information about namespace encoding to API docs 2017-04-08 12:38:59 +02:00
Toon Claes 13c3f622cb Update description about GET /projects endpoint
It returns all projects visible for the authenticated user, not just
the project they are member of.
2017-03-07 23:53:36 +01:00
Z.J. van de Weg 194223476b Rename build to job in the docs 2017-03-06 14:34:07 +01:00
Toon Claes 6357635686 Rename query parameter to `membership`
The query parameter `membership` should be more self-explaining.
2017-03-03 13:42:39 +01:00
Oswaldo Ferreira 06e96907ee Add filter param for authorized projects for current_user for V4 2017-03-03 12:02:41 +01:00
Toon Claes b2c2dfe545 Expose Project's & ProjectSnippet's VisibilityLevel as String
Instead of exposing the VisibilityLevel as Integer, expose it as
String `visibility` for Project and ProjectSnippet.

Filter queries also accept the `visibility` as String instead of
`visibility_level` as Integer.

Also remove the `public` boolean.
2017-03-02 09:33:24 +01:00
Douwe Maan b6a945b393 Merge branch 'api-v4-doc' into 'master'
Use v4 endpoint in API docs

See merge request !9631
2017-03-01 20:31:23 +00:00
Robert Schilling 1ead6a9793 Use v4 endpoint in API docs 2017-03-01 18:39:40 +01:00
James Lopez a0101ebf84 Update occurrences of MWBS to MWPS
Rename column in the database
 Rename fields related to import/export feature
 Rename API endpoints
 Rename documentation links
 Rename the rest of occurrences in the code
 Replace the images that contain the words "build succeeds" and docs referencing to them
 Make sure pipeline is green and nothing is missing.

updated doc images

renamed only_allow_merge_if_build_succeeds in projects and fixed references

more updates

fix some spec failures

fix rubocop offences

fix v3 api spec

fix MR  specs

fixed issues with partials

fix MR spec

fix alignment

add missing v3 to v4 doc

wip - refactor v3 endpoints

fix specs

fix a few typos

fix project specs

copy entities fully to V3

fix  entity error

more fixes

fix failing specs

fixed missing entities in V3 API

remove comment

updated code based on feedback

typo

fix spec
2017-03-01 12:02:02 +01:00
Jarka Kadlecova 08ee177d6f API project create: Make name or path required 2017-02-27 07:55:45 +01:00
Robert Schilling 931db7963e Merge branch 'master' into 'api-notes-entity-fields'
# Conflicts:
#   doc/api/v3_to_v4.md
2017-02-22 17:32:41 +00:00
Mark Fletcher d3425933dd Add housekeeping endpoint for Projects API 2017-02-22 17:40:20 +05:30
Robert Schilling 0b402e11e3 Remove deprecated `upvotes` and `downvotes` from the notes API 2017-02-22 13:07:49 +01:00
Robert Schilling 039c6d60fa API: Moved `DELETE /projects/:id/star` to `POST /projects/:id/unstar` 2017-02-20 15:14:48 +01:00
Dmitriy Zaporozhets efc82ebf3f Merge branch 'master' into 'dz-nested-groups-improvements-3'
# Conflicts:
#   doc/api/projects.md
2017-02-14 19:09:52 +00:00
Dmitriy Zaporozhets 6676b4f0dd
Use Namespace#full_path instead of Namespace#path
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-02-14 18:38:20 +02:00
Toon Claes 4e9e29d295 API: Consolidate /projects endpoint
It consolidates these endpoints:
 - /projects
 - /projects/owned
 - /projects/visible
 - /projects/starred
 - /projects/all

Into the /projects endpoint using query parameters.
2017-02-14 16:41:57 +01:00
Oswaldo Ferreira c2102e6e3b Move /projects/fork/:id to /projects/:id/fork 2017-02-13 16:58:11 -02:00
Markus Koller 09a04107c3
Update API docs for new namespace format
Follow-up to d05dd81b which changed the nested namespaces in projects
to use API::Entities::Namespace instead of exposing all fields.

Fixes #27730
2017-02-08 21:12:13 +01:00
Toon Claes c6ad83ec29 API: remove `public` param for projects
The create and edit actions for projects had these parameters:

- `public` (optional) - if true same as setting `visibility_level = 20`
- `visibility_level` (optional)

Remove the `public` parameter to avoid contradiction.
2017-02-07 14:29:31 +01:00
Markus Koller 3ef4f74b1a
Add more storage statistics
This adds counters for build artifacts and LFS objects, and moves
the preexisting repository_size and commit_count from the projects
table into a new project_statistics table.

The counters are displayed in the administration area for projects
and groups, and also available through the API for admins (on */all)
and normal users (on */owned)

The statistics are updated through ProjectCacheWorker, which can now
do more granular updates with the new :statistics argument.
2016-12-21 16:39:49 +01:00
Robert Schilling 8b83d84bbd Remove duplicated parameter description [ci skip] 2016-12-15 10:30:40 +01:00
Rémy Coutable d74801ac6f
Document the public Project API and document `GET /projects/:id/users`
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-12-02 14:34:17 +01:00
Robert Schilling 7c607a55ab Grapify the projects API 2016-11-28 21:01:43 +01:00
Rémy Coutable d03ca3d02e Merge branch 'issue-24534' into 'master'
Remove unnecessary sentences for return codes in the API documentation

Closes #24534

See merge request !7511
2016-11-25 15:43:05 +00:00
Luis Alonso Chavez Armendariz ed61d44e1e Remove unnecessary sentences for status codes in the API documentation 2016-11-24 10:28:52 -07:00
Robert Schilling 28f4d7aa28 You can only assign default_branch when editing a project or when creating a project for a specified user [ci skip]
You can only assign default_branch when editing a project [ci skip]
2016-11-24 15:33:23 +01:00
Ruben Davila b437d305ca Add default_branch attr to Project API payload in docs. 2016-11-23 19:27:22 -05:00
Robert Schilling eff1b05ab1 API: Add endpoint to delete a group share 2016-11-23 12:53:37 +01:00
Robert Speicher 8996548e13 Correct curl examples for archive and unarchive project API
[ci skip]
2016-11-18 13:20:59 +02:00
Rodolfo Santos 1db9f826c1 Add setting to only allow merge requests to be merged when all discussions are resolved
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-04 14:58:40 +01:00
Rémy Coutable 2023511753 Merge branch 'gpocentek/gitlab-ce-api-webhook-token' into 'master'
This MR adds support for the `token` attribute in the project hook API.

Feature requested on a dependant project: https://github.com/gpocentek/python-gitlab/issues/170

See merge request !7220
2016-11-02 11:46:45 +00:00
Sean McGivern f77be11cb9 Ensure hook tokens are write-only in the API 2016-11-01 11:40:06 +00:00
Gauvain Pocentek c85c146aa2 Add support for token attr in project hooks API
The UI allows to define a token to validate payload on the target URL,
this patch adds the feature to the API.
2016-11-01 10:41:39 +00:00
Andrea Scarpino a84b124850 Fix project visibility level link 2016-10-31 11:12:11 +01:00
Takuya Noguchi a8bbe53c0c Remove pagination description from individual doc 2016-10-20 08:58:35 +09:00
Takuya Noguchi af8e06ee4c Fix a broken table in Project API doc 2016-10-20 08:57:23 +09:00
Dmitriy Zaporozhets cb7872c3a0
Remove /u/ prefix from user pages in documentation
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-10-13 14:24:09 +03:00
Rémy Coutable 8e70cf2564
Addresses Robert's feedback
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-11 17:25:57 +02:00
Keith Pope 07365e5183 Add config option to project to allow custom .gitlab-ci.yml location 2016-10-08 12:30:47 +01:00
Sean McGivern 7623ab0cf4 Make projects API docs match parameter style 2016-10-07 09:16:15 +01:00
Sean McGivern 42cb659726 Update API docs and specs for /projects/visible 2016-10-04 17:46:08 +01:00
Ben Boeckel e956a24dfd api: add /projects/visible API endpoint
FIxes #19361, #3119.
2016-10-04 17:23:18 +01:00
Ben Boeckel b6b5033516 docs: clarify /projects endpoint description 2016-10-04 17:23:18 +01:00
Felipe Artur 93d849beae Expose project share expiration_date field on API 2016-09-28 10:12:49 -03:00
Felipe Artur e0067d1850 Allow to set request_access_enabled for groups and projects using API 2016-09-19 12:13:57 -03:00
Olaf Tomalka bad3fb895c Added fork API paremeter for a specific namespace
Browser interface allows forking to an owned grup.
This commit brings API up to speed by providing optional namespace
parameter to fork API. This allows forking to users and groups under
forker's control using their id or unique name.

Fixes #21591
2016-09-06 04:16:14 +02:00
Achilleas Pipinellis 636dbc85e2 The ID of a project can be also a string
[ci skip]
2016-08-31 17:40:54 +02:00
Patricio Cano cf37d623e1 Renamed `enable_lfs` to `lfs_enabled` for the Project field, and related fixes. 2016-08-30 17:17:45 -05:00
Patricio Cano 0227e98d0d Added CHANGELOG, documentation, and API functionality 2016-08-30 16:17:41 -05:00
Achilleas Pipinellis a5c1b42bf1 Merge branch 'patch-5' into 'master'
Update projects.md

## What does this MR do?
Repaired  some examples for a branches in projects.md

See merge request !6018
2016-08-30 19:09:06 +00:00
Achilleas Pipinellis 8c101f9f86 Mention that the `:id` of a project can also be `NAMESPACE/PROJECT_NAME`
[ci skip]
2016-08-30 13:43:09 +02:00
Miroslav Meca 01a1e3925a Update projects.md
The wrong example for "Branches".
Added option parameters in protect branch section.
Here is reason: 3ab07b8aae

Maybe this section could/should be deleted. Because in file repositories.md it had been deleted:  8f3701eff0
2016-08-25 12:01:52 +00:00
Douwe Maan 952c501fdf Merge branch 'api_only_allow_merge_if_build_succeeds' into 'master'
expose 'only_allow_merge_if_build_succeeds' project setting in the API

## What does this MR do?
Adds the 'only_allow_merge_if_build_succeeds' project setting in the API.

## Are there points in the code the reviewer needs to double check?
No, but maybe this code is not enough for ACLs or the like.

## Why was this MR needed?
Because that's a very useful setting to change via automation (through the API)

## What are the relevant issue numbers?

Closes #21085, closes https://gitlab.com/gitlab-org/gitlab-ce/issues/20088.

## Screenshots (if relevant)

## Does this MR meet the acceptance criteria?

- [X] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [X] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [X] API support added
- Tests
  - [X] Added for this feature/bug
  - [X] All builds are passing
- [X] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [X] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [X] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5930
2016-08-24 19:27:58 +00:00
Ben Boeckel 99c2f3b3c5 api: expose wiki_page_events project hook field in the API 2016-08-24 10:33:51 -04:00
Ben Boeckel f413d7ed80 docs: document other project webhook fields 2016-08-24 10:33:37 -04:00
Marc Dequènes (Duck) 31b2c1ef88 expose 'only_allow_merge_if_build_succeeds' project setting in the API 2016-08-24 17:11:48 +09:00
Rémy Coutable 29850364ec New AccessRequests API endpoints for Group & Project
Also, mutualize AccessRequests and Members endpoints for Group &
Project.
New API documentation for the AccessRequests endpoints.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-08-10 19:07:05 +02:00
winniehell e0a858efcc use long options for curl examples in API documentation (!5703) 2016-08-09 01:42:50 +02:00
Rémy Coutable 356b2d2bd7 Get rid of `is_image` in FileUploader
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-19 18:51:09 +02:00
Achilleas Pipinellis 92772f85c1 Merge branch 'api-docs-typos' into 'master'
Fix typos in API documentation

See merge request !4949
2016-07-09 15:15:20 +00:00
Rémy Coutable 09f4a8f8f5
Merge branch 'edgemaster/gitlab-ce-patch-missing-api-docs'
See !4096.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-08 17:52:53 +02:00
Rémy Coutable 8657e327ff Merge branch 'api-shared-projects' into 'master'
Api shared projects

## What does this MR do?

Exposes the shared projects in the group endpoint

## What are the relevant issue numbers?

Builds upon !5148 and closes #18780

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5150
2016-07-08 14:30:35 +00:00
Robert Schilling 0530ec5e6e Expose shared groups for projects 2016-07-08 10:30:52 +02:00
Sergey Gnuskov 82ba5f2bd3 Fix unarchive mistake 2016-07-07 15:41:15 +03:00
Ben Boeckel 56aa6d2305 projects: add container_registry_enabled to API docs 2016-06-27 16:33:51 -04:00
Ben Boeckel 9e33ca1c0b docs: fix some typos 2016-06-27 16:16:34 -04:00
Kamil Trzcinski 9f679ac207 Update docs/api/projects.md with container registry enabled option 2016-05-09 20:35:25 +03:00
Thomas Wood 461c5585e6 API Docs: Add missing project option shared_runners_enabled
Introduced into the API in e80e3f53

[ci skip]
2016-05-09 14:35:05 +01:00
Robert Schilling 54231aa4e0 Styling changes to code and docs 2016-04-13 16:25:24 +02:00
Robert Schilling 3ab9ea8dae Make staring API more restful 2016-04-13 14:26:41 +02:00
Robert Schilling ea2193aaeb API: Star and unstar a project 2016-04-13 14:26:40 +02:00
Zeger-Jan van de Weg 6dbcb880cc Allow a project member to leave the projected through the API 2016-04-12 14:30:42 +02:00
Zeger-Jan van de Weg 3549d7c1d4 PUT becomes POST on archiving endpoints
Also the specs have a minor improvement. Mainly the access right spec.
Changes are reflected in the docs
2016-03-24 18:58:42 +01:00
Zeger-Jan van de Weg 2c5bcf2e1b Add endpoints for archiving and unarchiving 2016-03-23 22:36:35 +01:00
Dmitriy Zaporozhets e8b3b92dde
Bring share project with group API from EE
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-13 11:52:43 +01:00
Kamil Trzcinski b4c36130cc Rename allow_guest_to_access_builds to public_builds 2016-02-04 12:57:46 +01:00
Kamil Trzcinski 6a5a175d9f Expose allow_guest_to_access_builds in GitLab API 2016-02-04 11:14:12 +01:00
Josh Frye 11797df1af Change 'public' flag to more robust 'visibility' query. 2016-01-19 09:57:00 -05:00
Josh Frye 6951396dbe Update all docs for public param 2016-01-19 09:57:00 -05:00
Josh Frye 10669097fa Add public params to GET /projects api. Closes #3788 2016-01-19 09:57:00 -05:00
Douwe Maan 9664424cab Merge branch 'ci/api-projects' into 'master'
Extend projects API with CI data

Reference #4264 

See merge request !2303
2016-01-13 13:32:35 +00:00
Tomasz Maczukin fc4108b38b Modify CI features in projects API 2016-01-11 15:27:20 +01:00
Douwe Maan 1886d727f7 Add API project upload endpoint 2016-01-07 13:37:14 +01:00
Tomasz Maczukin ba9799b42f Update ./doc/api 2016-01-07 10:39:02 +01:00
Stan Hu 301a30e0ea Add project permissions to all project API endpoints
This standardizes all the project API formats. Also needed to support Huboard.
2015-12-22 10:58:23 -08:00
Zeger-Jan van de Weg c36821df9f Api support for requesting starred projects for user
Fixes #4112
2015-12-16 21:46:00 +01:00
Dmitriy Zaporozhets b8570576e8
Merge branch 'add-open-issues-count-to-api' of https://gitlab.com/stanhu/gitlab-ce
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-16 16:08:35 +01:00
Stan Hu 3efae53bd7 Add open_issues_count to project API
This is needed to support Huboard and a generally useful value.
2015-12-11 23:17:36 -08:00
Kamil Trzcinski e80e3f5372 Migrate CI::Project to Project 2015-12-11 18:02:09 +01:00
Stan Hu 7b0ac5b6b4 Remove default_branch from project API creation since an empty repository
has no branches to start.

Closes #3937
2015-12-08 21:31:22 -08:00
Dmitriy Zaporozhets 3227a5ead2
Extent Event and Note API
* add note to Events API
* add author section to Events API
* add noteable_id and noteable_type to Notes API

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-04 12:22:50 +01:00
Kamil Trzcinski 6384c757b7 Expose CI enable option in project features
- Enable CI by default for all new projects
2015-11-13 10:52:50 +01:00
Ben Boeckel eb912a534b api: add enable_ssl_verification to PUT/POST hooks 2015-09-24 12:34:16 -04:00
Ben Boeckel b07f48d52e doc: list note_events as a valid parameter for PUT/POST hooks 2015-09-24 12:33:58 -04:00
Ben Boeckel 22db4398c6 api: expose note_events and enable_ssl_verification for hooks 2015-09-24 12:33:11 -04:00
Sytse Sijbrandij b2246ed175 Make sure webhooks are mentioned at the top level. 2015-07-08 22:27:36 +02:00
Valery Sizov 7471047104 update API doc 2015-05-14 16:30:27 +03:00
Christoph Dreis d570d0a280 Update API documentation of projects with creator_id 2015-04-10 20:05:01 +02:00
Cristian Medina f045490568 Modified lib/api/entities.rb to expose Project class tag_list property to the API
Updated projects.md to show tag_list field when performing GETs
Updated projects_spec.rb to include check for tag_list key in project list
Added changes to the CHANGELOG
2015-04-03 04:35:12 -04:00
sue445 51abeaa1bc Expose avatar_url in projects API
* Impl Project#avatar_url
* Refactor ApplicationHelper: Use Project#avatar_url
* Update changelog
2015-03-01 10:13:01 +09:00
Dmitriy Zaporozhets 92434b29cc Extend project web hooks with more data
* add git_http_url and git_ssh_url to project web hook
* add visibility_level to project web hook
* add documentation about project visibility_level in API
2015-02-20 10:27:37 -08:00
Dmitriy Zaporozhets bdfb349ff7 Refactor and improve sorting objects in API for projects, issues and merge requests 2015-02-05 22:00:54 -08:00
Ewan Edwards ad6c372eee Fix a number of discovered typos, capitalization of developer and
product names, plus a couple of instances of bad Markdown markup.
2015-02-03 15:18:40 -08:00
Mika Mäenpää 7dd5656a5b Implement edit via API for projects 2015-01-22 16:58:01 +01:00
Marin Jankovski 8689ce1efe Add search filter option on project api for authorized projects. 2015-01-12 11:08:53 +01:00
Stephan van Leeuwen 6b50721946 Updated projects api to allow ordering
Added support for order_by and sort parameters, to sort the projects by the specified values.
Updated projects api documentation including the order_by and sort parameters
2014-12-29 16:36:56 +01:00
Dmitriy Zaporozhets ef9f8677e6
Expose author username in project events API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-10-31 12:08:45 +02:00
Kirill Zaitsev b4963e9dda Add tag_push_events to project hook api 2014-10-03 10:23:32 +04:00
Bernhard Kaindl f030ee846e API: Initial support for forking a project via the API
This change adds POST /projects/fork/:id to the API for forking
a project into the namespace of the authenticated user, like the
"create fork" link in the GUI does. It also calls the same code.

Failure and permission checks (except for conflict) are already
implemented and handled in ForkService and the API, so the added
code is simple and does not alter anything.
2014-10-01 10:27:48 +02:00
Dmitriy Zaporozhets 8c765aaf3f
Update project api docs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-09 10:52:30 +03:00
Ciro Santilli a1d0997850 Fix Md style for projects API doc. 2014-08-15 10:52:37 +02:00
Robert Schilling 9284038dbe Add, delete labels via API 2014-08-13 12:28:19 +02:00
Dmitriy Zaporozhets d10ecacc47 Merge branch 'master' into 'master'
Let users limit by archived/not archived projects in GitLab API GET /projects

Adds a boolean parameter, archived, to the /projects endpoint.

See merge request !158
2014-08-11 09:27:24 +00:00
Rob Taylor 79d71461c2 Text changes to projects API documentation
Fixes some grammar / punctuation errors and inconsistencies.
2014-07-31 17:39:04 +01:00
Sasha Joseph 37c4ba6f8d Add an option to GET /projects in the GitLab API to exclude archived projects 2014-07-28 12:48:13 -04:00
Dmitriy Zaporozhets 66098dbb59 Merge pull request #7089 from NARKOZ/api-patch
API patch
2014-07-23 20:26:36 +03:00
Dmitriy Zaporozhets 1355ede49d
Wipe wall notes feature
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-13 14:24:54 +03:00
Nihad Abbasov 1e160e130d update API docs 2014-06-06 06:32:39 +05:00
Marin Jankovski f22c709539 Add titles to doc pages. 2014-05-27 14:12:15 +02:00
Marcus Ilgner 61e6863403
Add info about exposed Project::archived to API docs 2014-04-20 12:01:55 +02:00
Johannes Schleifenbaum 49addad7b5 Api-Doc JSON lint
Fixes: #5505
2014-04-05 08:37:42 +02:00
Ábner Silva de Oliveira 19938156d8 documentation for api method which get labels of a project 2014-03-23 19:20:17 -03:00
Dmitriy Zaporozhets 86c76eccea
Add more api docs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-17 15:22:39 +02:00
dosire 0007db8352 Doesn't exist for user endpoint. 2014-02-18 15:38:07 +01:00
dosire dac0e2f174 Add namespace for projects to docs. 2014-02-14 11:13:52 +01:00