module Gitlab::Client::Wikis

def create_wiki(project, title, content, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) - Information about created wiki page.

Options Hash: (**options)
  • format (String) -- The format of the wiki page. Available formats are: markdown (default), rdoc, and asciidoc.

Parameters:
  • options (Hash) -- A customizable set of options.
  • title (String) -- The title of the wiki page.
  • content (String) -- The content of the wiki page.
  • project (Integer, String) -- The ID or name of a project.
def create_wiki(project, title, content, options = {})
  body = { content: content, title: title }.merge(options)
  post("/projects/#{url_encode project}/wikis", body: body)
end