rename endpoints for versions by project and vv

pull/2673/head
Jan Sandbrink 10 years ago
parent c7ca71b7e0
commit fb3db5cf9d
  1. 2
      lib/api/v3/projects/projects_api.rb
  2. 2
      lib/api/v3/versions/projects_by_version_api.rb
  3. 2
      lib/api/v3/versions/versions_api.rb
  4. 2
      lib/api/v3/versions/versions_by_project_api.rb

@ -51,7 +51,7 @@ module API
mount API::V3::Projects::AvailableAssigneesAPI
mount API::V3::Projects::AvailableResponsiblesAPI
mount API::V3::Categories::CategoriesByProjectAPI
mount API::V3::Versions::ProjectsVersionsAPI
mount API::V3::Versions::VersionsByProjectAPI
mount API::V3::Types::TypesByProjectAPI
end
end

@ -30,7 +30,7 @@
module API
module V3
module Versions
class VersionsProjectsAPI < Grape::API
class ProjectsByVersionAPI < Grape::API
resources :projects do
before do
@projects = @version.projects.visible(current_user).all

@ -59,7 +59,7 @@ module API
VersionRepresenter.new(@version, context)
end
mount API::V3::Versions::VersionsProjectsAPI
mount API::V3::Versions::ProjectsByVersionAPI
end
end
end

@ -30,7 +30,7 @@
module API
module V3
module Versions
class ProjectsVersionsAPI < Grape::API
class VersionsByProjectAPI < Grape::API
resources :versions do
before do
@versions = @project.shared_versions.all
Loading…
Cancel
Save