API draft
Created by: NARKOZ
WIP #375 (closed)
Merge request reports
Activity
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)
- 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
@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: 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)