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
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