mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
16 lines
514 B
Ruby
16 lines
514 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Entities
|
|
class WikiPageBasic < Grape::Entity
|
|
expose :format, documentation: { type: 'string', example: 'markdown' }
|
|
expose :slug, documentation: { type: 'string', example: 'deploy' }
|
|
expose :title, documentation: { type: 'string', example: 'deploy' }
|
|
|
|
expose :wiki_page_meta_id, documentation: { type: 'integer', example: { wiki_page_meta_id: 123 } } do |wiki_page|
|
|
wiki_page.find_or_create_meta.id
|
|
end
|
|
end
|
|
end
|
|
end
|