Skip to content

Get all wiki pages

alinach edited this page May 16, 2016 · 8 revisions

Get all wiki pages

Returns the list of all pages in a project wiki.

Sync Example:

using System;
using System.Collections.Specialized;
using Redmine.Net.Api;
using Redmine.Net.Api.Types;

namespace RedmineTest
{
   class Program
   {
       static void Main(string[] args)
       {
           string host = "<host>";
           string apiKey = "<api-key>";
           var manager = new RedmineManager(host, apiKey);

           string projectId = "<project-id>";
           List<WikiPage> pages = (List<WikiPage>)manager.GetAllWikiPages(projectId);

           foreach (var page in pages)
           {
               Console.WriteLine("WikPage details: {0}.", page);
           }
        }
     }
}

Async Example:

...
  await manager.GetAllWikiPagesAsync(null, projectId);
...