Method returns wiki page file content. Url: ../api/wiki/[ID]/content
Name | Type | Description |
---|---|---|
request | \RequestParameters | RequestParameters object |
Method returns wiki page file content. Url: ../api/wiki/[ID]/content
Name | Type | Description |
---|---|---|
request | \RequestParameters | RequestParameters object |
Method returns wiki page versions info. Url: ../api/wiki/[ID]/referrers?project=[project]
Name | Type | Description |
---|---|---|
request | \RequestParameters | RequestParameters object |
page_size
and page_num
parameters to control the set of records
returned.Method returns wiki page versions info. Url: ../api/wiki/[ID]/versions?project=[project]
Name | Type | Description |
---|---|---|
request | \RequestParameters | RequestParameters object |
page_size
and page_num
parameters to control the set of records
returned.User needs to be authenticated to use this service.
Returns 0 or more WikiPageBasic models in an array. If an 'id' is
received as parameter it will search for that record. Otherwise the
method will process a search request using the expected parameters in
the query string:
Name | Type | Description |
---|---|---|
request | \RequestParameters | See description for details about expected properties. |
sort_field
and sort_dir
parameters to control the order in which
records are returned.page_size
and page_num
parameters to control the set of records
returned.A WikiPageBasic model if 'id' defined, models array otherwise
GET http://api.mygforge.tld/api/wiki/1234
{
id: 55,
section: "project",
refId: 134,
pagename: "FrontPage",
flags: 0,
latestVersion: 1,
pageViews: 1,
html_url: "/gf/project/msproject/wiki/?pagename=FrontPage",
content_url: "/api/wiki/55/content"
}
GET http://api.mygforge.tld/api/wiki/?refId=134&page_size=3&page_num=1&sort_field=pagename&sort_dir=desc
[
{"id":61,"section":"project","refId":134,"pagename":"MostPopular","flags":0,"latestVersion":1,"pageViews":0},
{"id":57,"section":"project","refId":134,"pagename":"HowToUseWiki","flags":0,"latestVersion":1,"pageViews":0},
{"id":63,"section":"project","refId":134,"pagename":"GoodStyle","flags":0,"latestVersion":1,"pageViews":0}
]
GET http://api.mygforge.tld/api/wiki/?project=gforge5&pagename=FrontPage
GET http://api.mygforge.tld/api/wiki/?user=123&pagename=My+User+Wiki
[
{"id":68,"section":"user","refId":123,"pagename":"My+User+Wiki","flags":0,"latestVersion":1,"pageViews":1},
]
Create a new wiki page entry if necessary
Name | Type | Description |
---|---|---|
id | string | In route this should be the pagename. Required |
project | string | Project associated with wiki. Required |
Sets project wiki to be public or private
Name | Type | Description |
---|---|---|
No parameters |
Create a new build and an associated job if necessary
Name | Type | Description |
---|---|---|
id | string | Database ID for the wiki. Required |
content | string | Content to be saved for the wiki page. Required |