Sebastian Ziebell
32f1eaaf0f
API: system hooks API functions and documentation updated
...
* updated system hooks documentation and code comments
* fixed access to system hooks if no user given resulting in a `500 Server Error`
* added tests
2013-03-07 17:56:11 +01: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
39114d259c
API: documentation contains infos to status codes in README file.
...
All the info to return codes from the API functions are available in the `README.md` file as suggested.
2013-03-07 00:15:57 +01:00
Dmitriy Zaporozhets
afee5303ff
Merge pull request #3149 from m4tthumphrey/api-deploy-keys
...
Added methods to manage project deploy keys via API
2013-03-06 07:43:45 -08:00
Matt Humphrey
1dd712ddc2
System hooks API.
2013-03-06 15:15:26 +00:00
Angus MacArthur
47abdc10ca
Updated documentation for added Admin APIs
2013-03-05 23:48:40 -05:00
Matt Humphrey
f411772e33
Project deploy keys API
2013-03-05 21:23:29 +00: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
Sebastian Ziebell
43d7596030
Merge branch 'feature/api-documentation-fixes' of github.com:Xylakant/gitlabhq into fixes/api
...
Conflicts:
doc/api/projects.md
2013-02-27 16:49:45 +01:00
Sebastian Ziebell
3b3add35fb
API: merge request documentation updated, added return codes to functions
...
The API documentation of merge requests contains info to status codes for all functions.
Required arguments are now checked in the merge requests API functions and a `400 Bad Request` error is
returned if they are not given.
2013-02-27 15:07:42 +01:00
Sebastian Ziebell
e96d77d3db
API: issues documentation and API functions updated
...
The issues documentation is updated with infos to status codes and the deprecated `DELETE` function and
how to close an issue. A few more tests added to check status codes of API functions.
2013-02-27 14:36:20 +01:00
Sebastian Ziebell
dffc2b8a8b
API: session documentation updated and test added
2013-02-27 12:58:06 +01:00
Sebastian Ziebell
873db06255
API: groups documentation updated, functions return different status codes
...
Updates the API documentation of groups with infos to return codes. The function calls
in the groups API have updated documentation and return `400 Bad Request` status code
if a required attribute is missing.
2013-02-27 12:34:45 +01: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
9ee6c58acc
API documentation updated for project snippets.
...
The API Documentation for project snippets got infos to return codes. Tests are added
to check status codes when handling project snippets.
2013-02-21 21:13:46 +01:00
Sebastian Ziebell
4a60c377b8
API documentation update for milestones
...
Updated the milestones API documentation and added return codes descriptions.
2013-02-20 22:51:59 +01:00
Sebastian Ziebell
33c1463645
API: fixes return codes for notes, documentation updated
...
The notes API documentation updated with return codes. API now returns `400 Bad Request` if
required attributes are not present. Return codes are documented now, also tested in added tests.
The documentation now reflects the current state of the API.
2013-02-20 22:17:05 +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
1b97a2eee8
API: fixes return codes, documentation updated with status codes, tests added
...
The users API updated with return codes, e.g. if required parameters are missing
a `400 Bad Request` error is returned instead of `404`. Fixes return codes of functions,
e.g. deletion of a ssh key is an idempotent function now.
The API documentation is updated to reflect the current status of the API. Descriptions
are more detailed and complete, infos to return values are added to all functions.
2013-02-20 12:23:56 +01:00
Nihad Abbasov
08f665cf28
API docs: fix new milestone parameters
2013-02-20 11:41:32 +04:00
Dmitriy Zaporozhets
67465dc5ef
Fix private flag for project
2013-02-19 11:45:49 +02:00
Sebastian Ziebell
da040fc134
API documentation expanded with status code information
...
Information to return codes added to projects and users documentation.
2013-02-18 11:15:26 +01:00
Sebastian Ziebell
beb00af0c1
API documentation extended with snippets, tags and commits
...
Documentation is updated with information how to handle snippets or how to access tags
and commits. Nearly all project specific functions are now described in the documentation.
A few previous entries have been updated with status codes, e.g. `401 Unauthorized`.
2013-02-15 18:50:52 +01:00
Sebastian Ziebell
99739a58c3
API documentation extended with infos to project branches
2013-02-15 13:54:26 +01:00
Sebastian Ziebell
12a1f73b61
API projects documentation grouped into sections & updated with status codes
...
The API documentation for projects now is structured into major sections that describe
the different aspects when dealing with projects, e.g. hooks, branches, team members etc.
All described methods now contain a list of possible status codes the method can return. A few
methods have extra sample JSON responses and a description if a method is idempotent.
Idempotent methods can be called multiple times while returning the same status code.
2013-02-14 20:43:48 +01:00
Sebastian Ziebell
375caeefcf
Merge branch 'master' into fixes/api
2013-02-13 10:31:06 +01:00
Sebastian Ziebell
2bd955961c
Changed function to `not_found`.
...
Instead of using funtion `error!` the function `not_found!` is used to return 404 error. Adjusted documentation accordingly.
2013-02-09 21:01:17 +01:00
Sebastian Ziebell
8045a81bcf
Merge branch 'master' into fixes/api
2013-02-08 10:32:42 +01:00
Sebastian Ziebell
a534c9b72d
A few fixes in documentation to notes, updates infos on status codes
...
A few fixes in the notes URI pattern (`notes` instead of `:notes`), also updated
the information to status codes. If `body` attribute is missing from a POST request
a status code 400 (Bad request) is returned. This reflects the code changes from
the previous commit.
2013-02-06 17:11:00 +01:00
Felix Gilcher
566de5ab06
update api documentation for delete team member
...
correctly describes the new behavior
2013-02-01 14:20:51 +00:00
Christian Simon
fc0c692870
Add docs/tests for groups api
2013-02-01 14:59:22 +01:00
Dmitriy Zaporozhets
5857a7a9ce
Merge pull request #2839 from m4tthumphrey/protected-branches-api
...
Added methods to protect and unprotect branches in from the API
2013-01-31 10:44:20 -08:00
Dmitriy Zaporozhets
fd1b9fdc12
Merge branch 'extend_user_api' of https://github.com/bladealslayer/gitlabhq into bladealslayer-extend_user_api
...
Conflicts:
spec/requests/api/users_spec.rb
2013-01-31 13:00:50 +02:00
Matt Humphrey
2c7554e897
Added methods to protect and unprotect branches
2013-01-31 09:26:03 +00:00
Dmitriy Zaporozhets
193a5624b2
add path and path_with_namespace to api project entity
2013-01-31 09:11:35 +02:00
Dmitriy Zaporozhets
bcc0eed3e4
missing doc for api
2013-01-31 08:46:59 +02:00
Felix Gilcher
e76215a395
Update docs to reflect that project names are allowed as ID
...
The API accepts project names in all places where project IDs are expected. Updated the docs to
reflect that.
2013-01-28 23:51:45 +01:00
Felix Gilcher
a90d5c21b5
describe the project access level
...
the documentation mentions access_level as required parameter, but fails to list
accepted values.
2013-01-28 16:46:58 +01:00
Felix Gilcher
2ddaf00387
Added documentation for passing the token as header
...
The documentation was unclear about how to pass the api private token as
header. Updated the doc to include the nessesary information bits and
added an example using the curl command line client.
2013-01-28 14:49:27 +01:00
Felix Gilcher
3c47e6248a
remove incorrect information about the api version
...
The API version is currently not equal to the gitlab major version number. Gitlab 4.1
still uses API version 3. Point to the lib/api.rb file instead which contains the
autoritative information.
2013-01-28 10:59:39 +01:00
Riyad Preukschas
056fa05b86
Remove path parameter from projects API
2012-12-22 20:06:18 +01:00
Riyad Preukschas
eaa99478a7
Up API version to v3
2012-12-21 18:55:39 +01:00
Riyad Preukschas
8f01190eb5
Remove all references tp the project code parameter from the API
2012-12-21 18:47:04 +01:00
Riyad Preukschas
931ec399bd
Remove the code parameter from the projects API
2012-12-21 18:43:46 +01:00
Valeriy Sizov
77d632890b
refactoring gfm_autocomplete
2012-12-20 20:52:12 +02:00
Boyan Tabakov
e954438a1d
Extended users API to support updating and deleting users.
...
Also added tests.
2012-12-18 21:24:31 +02:00
Dmitriy Zaporozhets
120f50cff4
Merge pull request #2286 from nuecho/fix-doc-api-issues
...
Removed delete section in issues API documentation
2012-12-15 01:29:43 -08:00
Matthieu Vachon
40c11a3663
Removed delete section in issues API documentation
2012-12-14 16:06:02 -05:00
Cyril
d3b8952f8f
Add username to User and UserBasic entities in API and in examples in doc.
2012-12-12 18:51:20 +01:00
Cyril
63d9373aa8
Validates presence of User#name
...
The 2 reasons are :
- creation of user fail if name is empty : in after_save, it tries to create a
namespace with namespace.name = user.name and namespece validates presence
Namespace#name
- in the web app links to team members are broken with empty User#name because
they are of the form <a href'...'> user.name </a>
2012-12-12 17:53:43 +01:00
Nihad Abbasov
270a43370a
API: get a single wall note
2012-12-01 02:20:45 -08:00
Nihad Abbasov
b17e94c37b
update contents of API README
2012-12-01 02:07:57 -08:00
Nihad Abbasov
ee6187bd55
API: ability to create a wall note
2012-11-29 15:52:56 -08:00
Nihad Abbasov
2a98a060ca
API: don't expose 'updated_at' for notes
2012-11-29 14:41:24 -08:00
Nihad Abbasov
658f260e98
add docs for notes API
2012-11-29 12:32:05 -08:00
Valeriy Sizov
d6a5e3dad7
Merge pull request #1735 from NARKOZ/api
...
API fixes
2012-11-07 03:50:42 -08:00
Valeriy Sizov
e6cdfb607a
API: tests for merge_requests
2012-10-25 13:13:01 +03:00
Valeriy Sizov
77bc110107
API: help page and comment
2012-10-22 23:09:21 +03:00
Nihad Abbasov
cf70439e0a
update API docs
2012-10-19 03:39:02 -07:00
jozefvaclavik
d0000e5c18
Update doc/api/projects.md for hooks API
...
Added documentation for getting project hook and editing project hook.
2012-10-12 10:38:15 +03:00
Nihad Abbasov
61f12da3a5
API: add project snippets listing
2012-10-08 02:13:53 -07:00
Valeriy Sizov
dc53a4f732
API: fix documentation
2012-10-02 18:52:19 +03:00
Valeriy Sizov
d104df49e7
fix TYPO
2012-10-02 16:34:20 +03:00
Valeriy Sizov
705e9f402e
#1585 Api for user creation: create help
2012-10-02 12:52:13 +03:00
Nihad Abbasov
bbdb2c3fef
fix links in API README
2012-09-21 05:06:36 -07:00
Nihad Abbasov
4162566e11
separate project repositories API docs
2012-09-21 05:03:50 -07:00
Nihad Abbasov
b62445813d
API: SSH keys belong to user entity
2012-09-21 04:49:28 -07:00
Nihad Abbasov
4a072be2d7
API: commits belong to project repository
2012-09-21 04:34:07 -07:00
Dmitriy Zaporozhets
131553627d
Merge pull request #1521 from NARKOZ/api
...
API for project team members
2012-09-21 04:19:16 -07:00
Nihad Abbasov
25b745271a
add API for project team members
2012-09-21 03:23:17 -07:00
Dmitriy Zaporozhets
10d3a30b25
APi for commits. Better api docs
2012-09-21 13:22:30 +03:00
Dmitriy Zaporozhets
9aafe77e70
I want be able to get token via api. Used for mobile applications
2012-09-20 17:45:07 +03:00
Nihad Abbasov
4e1f1e1422
API docs minor formatting fix
...
[ci-skip]
2012-09-20 18:34:07 +06:00
Alex Denisov
9c0f6e8714
Small fixes added
2012-09-17 20:18:49 +03:00
Alex Denisov
87d40fd276
Docs added
2012-09-16 18:21:59 +03:00
miks
3b5a90bdf6
Projects hooks API implemented
2012-09-08 20:51:12 +03:00
miks
4226458faf
Merge branch 'master' into project_users_api
2012-09-08 10:50:24 +03:00
Dmitriy Zaporozhets
7c0a1068bf
Merge pull request #1363 from AlexDenisov/api_create_project_fixes
...
API create project fixes
2012-09-06 23:00:04 -07:00
miks
909c8c345d
Make project users API more RESTful
2012-09-06 23:49:29 +03:00
miks
3d3c6674fb
Typo fixed
2012-09-06 16:32:26 +03:00
Alex Denisov
09a86bd4d6
Capitlization of /gitlab/i normalized. #1367
2012-09-06 11:21:35 +03:00
miks
8f7360f390
API on adding users to project implemented
2012-09-05 23:01:03 +03:00
Rob Taylor
4cb03183ac
Text changes to API documentation
2012-09-04 09:48:33 +01:00
Alex Denisov
e078a173d6
Create project via API: fixes added
2012-09-03 18:00:24 +03:00
Nihad Abbasov
76e4d94d43
add pagination to API
2012-09-03 04:46:29 -07:00
Alex Denisov
9811e64d71
Typo and mistakes fixed
2012-08-31 11:11:12 +03:00
Alex Denisov
acac1547a0
JSON for new project removed from API docs
2012-08-31 10:28:38 +03:00
Alex Denisov
b6a0407e7a
Docs changed for Create Project API
2012-08-31 10:27:45 +03:00
Alex Denisov
985ecf0f04
Docs added for Create Project API
2012-08-31 10:25:36 +03:00
Robert Speicher
8a49cdc3b4
Add milestone API docs to doc/README and views/help/api
...
Also removes `closed` attribute option from create action.
2012-08-29 08:45:00 -04:00
Nihad Abbasov
2458060120
add docs for Milestones API
2012-08-29 05:31:00 -07:00
randx
fee26c58e2
Move snippets api doc to separate file
2012-08-25 19:21:11 +03:00
Jeremy Anderson
ce837f3d1b
fixed typo
2012-07-31 07:34:06 -07:00
Jeremy Anderson
69c4cea65a
updating project api to include raw blob contents and single branch
2012-07-31 07:32:44 -07:00
Nihad Abbasov
f7dd067490
API: expose issues project id
2012-07-25 04:22:21 -07:00
Nihad Abbasov
949b1df930
API: update docs
2012-07-25 02:35:41 -07:00
Nihad Abbasov
024e034890
update API docs
2012-07-24 05:25:01 -07:00
Nihad Abbasov
4083cfa4de
fix typo
2012-07-05 21:20:01 +06:00
Nihad Abbasov
f086676b7c
add docs for existing API
2012-07-05 06:57:45 -07:00