summaryrefslogtreecommitdiff
path: root/doc/api
Commit message (Collapse)AuthorAgeFilesLines
...
* | API: extracted helper method to validate required parameters, code clean upSebastian Ziebell2013-02-271-1/+2
| | | | | | | | | | | | 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.
* | Merge branch 'feature/api-documentation-fixes' of ↵Sebastian Ziebell2013-02-272-14/+35
|\ \ | | | | | | | | | | | | | | | | | | github.com:Xylakant/gitlabhq into fixes/api Conflicts: doc/api/projects.md
| * | Update docs to reflect that project names are allowed as IDFelix Gilcher2013-01-281-12/+13
| | | | | | | | | | | | | | | The API accepts project names in all places where project IDs are expected. Updated the docs to reflect that.
| * | describe the project access levelFelix Gilcher2013-01-281-0/+12
| | | | | | | | | | | | | | | the documentation mentions access_level as required parameter, but fails to list accepted values.
| * | Added documentation for passing the token as headerFelix Gilcher2013-01-281-1/+8
| | | | | | | | | | | | | | | | | | 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.
* | | API: merge request documentation updated, added return codes to functionsSebastian Ziebell2013-02-272-9/+47
| | | | | | | | | | | | | | | | | | 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.
* | | API: issues documentation and API functions updatedSebastian Ziebell2013-02-271-7/+60
| | | | | | | | | | | | | | | 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.
* | | API: session documentation updated and test addedSebastian Ziebell2013-02-271-0/+5
| | |
* | | API: groups documentation updated, functions return different status codesSebastian Ziebell2013-02-271-5/+25
| | | | | | | | | | | | | | | | | | 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.
* | | API repository documentation updated, includes infos to return codesSebastian Ziebell2013-02-271-11/+63
| | | | | | | | | | | | | | | | | | 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.
* | | API documentation updated for project snippets.Sebastian Ziebell2013-02-211-18/+53
| | | | | | | | | | | | | | | The API Documentation for project snippets got infos to return codes. Tests are added to check status codes when handling project snippets.
* | | API documentation update for milestonesSebastian Ziebell2013-02-201-6/+34
| | | | | | | | | | | | Updated the milestones API documentation and added return codes descriptions.
* | | API: fixes return codes for notes, documentation updatedSebastian Ziebell2013-02-201-40/+153
| | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-201-1/+1
|\ \ \ | | |/ | |/| | | | | | | Conflicts: spec/requests/api/projects_spec.rb
| * | Fix RESTfulness of project hook deletions by APIMatt Humphrey2013-02-201-1/+1
| | |
* | | Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-202-4/+3
|\ \ \ | |/ / | | | | | | | | | Conflicts: spec/requests/api/projects_spec.rb
| * | API docs: fix new milestone parametersNihad Abbasov2013-02-201-1/+0
| | |
| * | Fix private flag for projectDmitriy Zaporozhets2013-02-191-3/+3
| | |
* | | API: fixes return codes, documentation updated with status codes, tests addedSebastian Ziebell2013-02-201-26/+92
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | API documentation expanded with status code informationSebastian Ziebell2013-02-182-0/+18
| | | | | | | | | | | | Information to return codes added to projects and users documentation.
* | | API documentation extended with snippets, tags and commitsSebastian Ziebell2013-02-151-1/+153
| | | | | | | | | | | | | | | | | | 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`.
* | | API documentation extended with infos to project branchesSebastian Ziebell2013-02-151-0/+77
| | |
* | | API projects documentation grouped into sections & updated with status codesSebastian Ziebell2013-02-141-34/+117
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-131-0/+3
|\ \ \ | |/ /
| * | Changed function to `not_found`.Sebastian Ziebell2013-02-091-0/+3
| | | | | | | | | | | | Instead of using funtion `error!` the function `not_found!` is used to return 404 error. Adjusted documentation accordingly.
* | | Merge branch 'master' into fixes/apiSebastian Ziebell2013-02-086-3/+194
|\ \ \ | |/ /
| * | Add docs/tests for groups apiChristian Simon2013-02-012-0/+46
| | |
| * | Merge pull request #2839 from m4tthumphrey/protected-branches-apiDmitriy Zaporozhets2013-01-311-3/+86
| |\ \ | | | | | | | | Added methods to protect and unprotect branches in from the API
| | * | Added methods to protect and unprotect branchesMatt Humphrey2013-01-311-3/+86
| | | |
| * | | Merge branch 'extend_user_api' of https://github.com/bladealslayer/gitlabhq ↵Dmitriy Zaporozhets2013-01-311-0/+43
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into bladealslayer-extend_user_api Conflicts: spec/requests/api/users_spec.rb
| | * | | Extended users API to support updating and deleting users.Boyan Tabakov2012-12-181-0/+43
| | | | | | | | | | | | | | | | | | | | Also added tests.
| * | | | add path and path_with_namespace to api project entityDmitriy Zaporozhets2013-01-311-0/+6
| | | | |
| * | | | missing doc for apiDmitriy Zaporozhets2013-01-311-0/+13
| | |/ / | |/| |
* | | | A few fixes in documentation to notes, updates infos on status codesSebastian Ziebell2013-02-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | update api documentation for delete team memberFelix Gilcher2013-02-011-2/+5
|/ / / | | | | | | | | | correctly describes the new behavior
* | | remove incorrect information about the api versionFelix Gilcher2013-01-281-1/+1
| |/ |/| | | | | | | 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.
* | Remove path parameter from projects APIRiyad Preukschas2012-12-221-4/+0
| |
* | Up API version to v3Riyad Preukschas2012-12-211-1/+1
| |
* | Remove all references tp the project code parameter from the APIRiyad Preukschas2012-12-217-44/+44
| |
* | Remove the code parameter from the projects APIRiyad Preukschas2012-12-211-4/+0
| |
* | refactoring gfm_autocompleteValeriy Sizov2012-12-201-0/+1
|/
* Merge pull request #2286 from nuecho/fix-doc-api-issuesDmitriy Zaporozhets2012-12-151-14/+0
|\ | | | | Removed delete section in issues API documentation
| * Removed delete section in issues API documentationMatthieu Vachon2012-12-141-14/+0
| |
* | Add username to User and UserBasic entities in API and in examples in doc.Cyril2012-12-127-0/+26
|/
* Validates presence of User#nameCyril2012-12-121-1/+1
| | | | | | | | | 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>
* API: get a single wall noteNihad Abbasov2012-12-011-0/+13
|
* update contents of API READMENihad Abbasov2012-12-011-1/+2
|
* API: ability to create a wall noteNihad Abbasov2012-11-291-0/+16
|
* API: don't expose 'updated_at' for notesNihad Abbasov2012-11-291-2/+1
|
* add docs for notes APINihad Abbasov2012-11-291-0/+121
|