Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/project_import_entity.rb')
-rw-r--r--app/serializers/project_import_entity.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/serializers/project_import_entity.rb b/app/serializers/project_import_entity.rb
index 9b51af685e7..a3dbff3dc0b 100644
--- a/app/serializers/project_import_entity.rb
+++ b/app/serializers/project_import_entity.rb
@@ -3,11 +3,13 @@
class ProjectImportEntity < ProjectEntity
include ImportHelper
- expose :import_source
- expose :import_status
- expose :human_import_status_name
+ expose :import_source, documentation: { type: 'string', example: 'source/source-repo' }
+ expose :import_status, documentation: {
+ type: 'string', example: 'scheduled', values: %w[scheduled started finished failed canceled]
+ }
+ expose :human_import_status_name, documentation: { type: 'string', example: 'canceled' }
- expose :provider_link do |project, options|
+ expose :provider_link, documentation: { type: 'string', example: '/source/source-repo' } do |project, options|
provider_project_link_url(options[:provider_url], project[:import_source])
end
end