Skip to content
Snippets Groups Projects

API draft

Merged gitlab-qa-bot requested to merge github/fork/NARKOZ/api into master

Created by: NARKOZ

WIP #375 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Created by: dzaporozhets

    @narkoz i like it. Keep going

    By Administrator on 2012-06-27T12:07:16 (imported from GitLab project)

    By Administrator on 2012-06-27T12:07:16 (imported from GitLab)

  • Created by: dzaporozhets

    @narkoz btw lets squash commits to get 2-3 from this 5

    By Administrator on 2012-06-27T12:17:23 (imported from GitLab project)

    By Administrator on 2012-06-27T12:17:23 (imported from GitLab)

  • Created by: NARKOZ

    I'll do it later

    By Administrator on 2012-06-27T12:54:04 (imported from GitLab project)

    By Administrator on 2012-06-27T12:54:04 (imported from GitLab)

  • Created by: dzaporozhets

    Dont forget about security. User can get only project he can access to

    By Administrator on 2012-06-27T13:02:53 (imported from GitLab project)

    By Administrator on 2012-06-27T13:02:53 (imported from GitLab)

  • gitlab-qa-bot
lib/api.rb 0 → 100644
29 present @current_user, :with => Entities::User
30 end
31
32 # Projects API
33 resource :projects do
34 before { authenticate! }
35
36 # GET /projects
37 get do
38 @projects = current_user.projects
39 present @projects, :with => Entities::Project
40 end
41
42 # GET /projects/:id
43 get ":id" do
44 @project = current_user.projects.find_by_code(params[:id])
  • Created by: dzaporozhets

    current_user.projects.find_by_code

    By Administrator on 2012-06-28T14:46:28 (imported from GitLab project)

    By Administrator on 2012-06-28T14:46:28 (imported from GitLab)

  • Created by: dzaporozhets

    @narkoz I think we should provide a lite API docs in doc/api.md. What do you think?

    By Administrator on 2012-06-29T07:29:17 (imported from GitLab project)

    By Administrator on 2012-06-29T07:29:17 (imported from GitLab)

  • Created by: NARKOZ

    @randx I thought about creating a page in wiki.

    By Administrator on 2012-06-29T07:30:53 (imported from GitLab project)

    By Administrator on 2012-06-29T07:30:53 (imported from GitLab)

  • Created by: dzaporozhets

    @narkoz I prefer to keep docs with code. Code & docs should be synced

    By Administrator on 2012-06-29T07:38:04 (imported from GitLab project)

    By Administrator on 2012-06-29T07:38:04 (imported from GitLab)

  • Created by: dzaporozhets

    thank you :)

    By Administrator on 2012-06-29T11:27:56 (imported from GitLab project)

    By Administrator on 2012-06-29T11:27:56 (imported from GitLab)

  • Please register or sign in to reply
    Loading