Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-07-11Merge pull request #3993 from bke-drewb/3599Dmitriy Zaporozhets
Issue 3599: Add snippets_enabled flag to projects for API
2013-07-09Additon of apis for fork administration.Angus MacArthur
Added ability to add and remove the forked from/to relatioinship between existing repos.
2013-06-12Issue 3599: Add snippets_enabled flag to projects for APIDrew Blessing
s 3599: Add snippets_enabled flag to projects for API Replace missing comma
2013-06-06API: project eventsDmitriy Zaporozhets
2013-06-06Split Project api on several parts: deploy_keys, hooks, snippets etcDmitriy Zaporozhets
2013-06-04Selectable deploy keys contain master projectsbabatakao
2013-06-04Merge branch 'gist' of https://github.com/Andrew8xx8/gitlabhq into ↵Dmitriy Zaporozhets
Andrew8xx8-gist Conflicts: Gemfile.lock app/models/ability.rb app/models/project.rb app/views/snippets/_form.html.haml db/schema.rb features/steps/shared/paths.rb spec/factories.rb spec/models/project_spec.rb
2013-06-03Fix deploy key api 500 if key is emptyDmitriy Zaporozhets
2013-06-03Add api to collect owned user projects. Api deploy_key.create: Enable deploy ↵Dmitriy Zaporozhets
key if it exist in other owned project
2013-05-23split repositories and projects apiDmitriy Zaporozhets
2013-05-14Refactor API classes. So api classes like Gitlab::Issues become API::IssuesDmitriy Zaporozhets
2013-05-06fix API route to delete project hookNihad Abbasov
2013-05-06modify api to work with new deploy keysDmitriy Zaporozhets
2013-04-03Fixed API file raw functionality, Fixed tree controller tests. Added ↵Dmitriy Zaporozhets
BlobController specs
2013-04-01Project.repository should never be nil so you can call repository.exists? or ↵Dmitriy Zaporozhets
repository.empty? Also specify separate project factory for project with filled repo
2013-03-25Tests fixedAndrew8xx8
2013-03-19Abilities added to /user and /sign_in requestsAlex Denisov
2013-03-07API: fixes project creation and removed redundant infoSebastian Ziebell
2013-03-07Merge branch 'master' into fixes/api, code clean up and tests fixedSebastian Ziebell
Conflicts: doc/api/projects.md spec/requests/api/projects_spec.rb
2013-03-07Merge pull request #3146 from amacarthur/AdminAPIsDmitriy Zaporozhets
Additional Admin APIs
2013-03-06API: refactored and simplified error handling in merge requests APISebastian Ziebell
2013-03-06Fixes apiSebastian Ziebell
2013-03-06Merge branch 'master' into fixes/apiSebastian Ziebell
Conflicts: lib/api/projects.rb
2013-03-06Project deploy keys APIMatt Humphrey
2013-03-05Additional Admin APIsAngus MacArthur
2013-03-01Missed comma.Matt Humphrey
2013-03-01Added namespace_id to project creation via APIMatt Humphrey
This allows you to set the namespace ID for projects via the the API. By default it is created for the current user. You can assign it to the global namespace by passing `GLN` which translates to 'Global Namespace'.
2013-02-27Merge branch 'master' into fixes/apiSebastian Ziebell
2013-02-27API: extracted helper method to validate required parameters, code clean upSebastian Ziebell
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-27proper fix for #2300Nihad Abbasov
2013-02-27Merge branch 'master' into fixes/apiSebastian Ziebell
2013-02-27API: fix commits paginationNihad Abbasov
closes #2300
2013-02-27API repository documentation updated, includes infos to return codesSebastian Ziebell
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-20Merge branch 'master' into fixes/apiSebastian Ziebell
Conflicts: spec/requests/api/projects_spec.rb
2013-02-20Merge branch 'master' into fixes/apiSebastian Ziebell
Conflicts: spec/requests/api/projects_spec.rb
2013-02-20Fix RESTfulness of project hook deletions by APIMatt Humphrey
2013-02-16API: fixes visibility of project hookSebastian Ziebell
When a user is not authorized to see the list of hooks for a project, he is still able to access the hooks separately. For example if access to `GET /projects/:id/hooks` fails and returns a `403 Unauthorized` error it is still possible to access a hook directly via `GET /projects/:id/hooks/:hook_id`. Fixes access, also added tests to check access and status codes of hooks.
2013-02-14API: tests that check status codes for project branches and hooksSebastian Ziebell
Status code 422 (Unprocessable Entity) returned if invalid url is given when creating or updating a project hook.
2013-02-14API: status code 403 returned if new project would exceed limitSebastian Ziebell
When the project limit is reached the user is not allowed to create new ones. Instead of error code 404 the status code 403 (Forbidden) is returned with error message via API.
2013-02-13API: extracted helper method to provide 400 bad request error with descriptionSebastian Ziebell
Extracted a method for 400 error (Bad request) and adjusted code accordingly. The name of the missing attribute is used to show which one was missing from the request. It is used to give an appropriate message in the json response.
2013-02-13API: return status code 400 if filepath of raw file blob not givenSebastian Ziebell
2013-02-13API: fixes a few return codes for project snippetsSebastian Ziebell
When using project snippets via API the functions now provide status codes for different situations other then only returning 404 error. If required parameters are missing, e.g. `title` when creating a project snippet a 400 (Bad request) error is returned. The snippet delete function now is idempotent and returns a 200 (Ok) regardless if the snippet with the given id is available or not. Changing return codes of these functions has the advantage that the 404 error is used only for resources, which are not available. Tests added to check these status codes when handling project snippets.
2013-02-13Merge branch 'master' into fixes/apiSebastian Ziebell
2013-02-12API: changed status codes for project hooks functionsSebastian Ziebell
Different status codes in the API lib are returned on hook creation, update or deletion. If a required parameter is not given (e.g. `url` in `/projects/:id/hooks/:hook_id`) status code 400 (Bad request) is returned. On hook deletion a 200 status code is returned, regardless if the hook is present or not. This makes the DELETE function an idempotent operation. Appropriate tests are added to check these status codes.
2013-02-10Changed function to `not_found`.Sebastian Ziebell
Instead of using funtion `error!` the function `not_found!` is used to return 404 error. Adjusted documentation accordingly.
2013-02-08Status code 404 returned when retrieving non existent branch (issue #2922)Sebastian Ziebell
Accessing a repository branch that does not exist returns a 404 error instead of 200 now. Added a test.
2013-02-08Adding a project hook returns status code 400 if url is not givenSebastian Ziebell
When adding a project hook a url must be specified or a 400 error code is returned * Specs added to check status code on handling project hooks * refactored code, extracted a method
2013-02-08API: refined status code handling when adding or updating a project memberSebastian Ziebell
When a user is added to a project that is already a member of, a status code 201 is now returned to signal an idempotent operation. If something fails then instead of returning error code 404 different more specific error codes are returned. Status code 400 (Bad request) is returned when a required attribute, e.g. `access_level` is not given or 422 if there is a semantic error, e.g. should the `access_level` have an unsupported value. Specs are added to check these status codes.
2013-02-08Merge branch 'master' into fixes/apiSebastian Ziebell
2013-02-01Don't crash when removing a user that's not project memberFelix Gilcher
The attempt to revoke project access for a user that was not member of the project results in a 500 Internal Server error where it actually should result in a 200 OK since after the operation, the user is not member of the project. This turns the operation into an idempotent call that can be repeated with no ill effects. Updated the spec and changed the code accordingly. However, the result differs slightly, as we can't return the users project access level if the user was not member. I'm not aware if anybody relies on the result of this call. Fixes #2832