Skip to content
Snippets Groups Projects
Commit 8d9e649c authored by tiagonbotelho's avatar tiagonbotelho
Browse files

changes the usage of simpleprojectdetails to already implemented...

changes the usage of simpleprojectdetails to already implemented basicprojectsdetails and changes the url to a more reader friendly format
parent 2a161e7a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -91,12 +91,6 @@ module API
end
end
 
class SimpleProject < Grape::Entity
expose :id
expose :name, :name_with_namespace
expose :http_url_to_repo
end
class ProjectMember < UserBasic
expose :access_level do |user, options|
options[:project].project_members.find_by(user_id: user.id).access_level
Loading
Loading
Loading
Loading
@@ -32,17 +32,6 @@ module API
end
end
 
# Get a simplified project list for authenticated user
#
# Example Request:
# GET /projects/simple
get '/simple' do
@projects = current_user.authorized_projects
@projects = filter_projects(@projects)
@projects = paginate @projects
present @projects, with: Entities::SimpleProjectWithAccess, user: current_user
end
# Get an owned projects list for authenticated user
#
# Example Request:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment