Skip to content

Commit 852c44e

Browse files
Grom Nikolay Gennadevichastepin
authored andcommitted
Add wiki representation; fix uri slash
(cherry picked from commit 0fbe680)
1 parent d8431ec commit 852c44e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Api/AbstractApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class AbstractApi
2626
/**
2727
* default rest API prefix for confluence
2828
*/
29-
private const URI_PREFIX = '/rest/api/';
29+
private const URI_PREFIX = '/rest/api';
3030

3131
private ConfluenceClient $client;
3232

src/Entity/ContentBody.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ class ContentBody implements Hydratable
3333
* confluence representation
3434
*/
3535
public const REPRESENTATION_STYLED_VIEW = 'styled_view';
36+
37+
/**
38+
* confluence representation (wiki markup)
39+
*/
40+
public const REPRESENTATION_WIKI = 'wiki';
3641

3742
/**
3843
* @example <ac:link><ri:user ri:userkey="a-valid-account-id" /></ac:link>
@@ -64,6 +69,7 @@ public static function isSupported(string $representation): bool
6469
self::REPRESENTATION_VIEW,
6570
self::REPRESENTATION_EXPORT_VIEW,
6671
self::REPRESENTATION_STYLED_VIEW,
72+
self::REPRESENTATION_WIKI,
6773
], true));
6874
}
6975

0 commit comments

Comments
 (0)