diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-02-08 19:58:48 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-08-15 18:39:15 +0300 |
commit | c71357519020f49837047f575aa926b4c3e14aa8 (patch) | |
tree | e608acf6b50257b792e895a575a1fd032ed8d129 /lib/Section.php | |
parent | ed5f61d7149c9a0cbcdbbe3e6c37e4ceea4fb433 (diff) |
Add section endpoint
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/Section.php')
-rw-r--r-- | lib/Section.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Section.php b/lib/Section.php index 05ffeee..4590c99 100644 --- a/lib/Section.php +++ b/lib/Section.php @@ -23,7 +23,7 @@ namespace OCA\IssueTemplate; -class Section implements ISection { +class Section implements ISection, \JsonSerializable { /** @var string */ private $identifier; @@ -77,4 +77,10 @@ class Section implements ISection { return $detail; } + public function jsonSerialize() { + return [ + 'identifier' => $this->getIdentifier(), + 'title' => $this->getTitle(), + ]; + } }
\ No newline at end of file |