diff options
author | James Lopez <james@jameslopez.es> | 2018-02-12 14:40:55 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-02-13 17:25:47 +0300 |
commit | 848f49801d2c45227c525fb5ecdf8b71e7711ded (patch) | |
tree | 9ab7e1387d74eb276423ec96490bcff0f2cd62eb /lib | |
parent | de3edb7178bd7df2f72ef403e57bfdf4e6f732df (diff) |
add entity and update spec
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/api.rb | 1 | ||||
-rw-r--r-- | lib/api/entities.rb | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb index e953f3d2eca..754549f72f0 100644 --- a/lib/api/api.rb +++ b/lib/api/api.rb @@ -138,6 +138,7 @@ module API mount ::API::PagesDomains mount ::API::Pipelines mount ::API::PipelineSchedules + mount ::API::ProjectImport mount ::API::ProjectHooks mount ::API::Projects mount ::API::ProjectMilestones diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 7838de13c56..8fbad2b6959 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -90,6 +90,11 @@ module API expose :created_at end + class ProjectImportStatus < ProjectIdentity + expose :import_status + expose :import_error, if: :import_error + end + class BasicProjectDetails < ProjectIdentity include ::API::ProjectsRelationBuilder |