Rev 1271 | Rev 1273 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1271 | Rev 1272 | ||
---|---|---|---|
Line 179... | Line 179... | ||
179 | * @return string |
179 | * @return string |
180 | */ |
180 | */ |
181 | public function restApiInfo(string $kind='html'): string { |
181 | public function restApiInfo(string $kind='html'): string { |
182 | if ($kind === 'html') { |
182 | if ($kind === 'html') { |
183 | $struct = [ |
183 | $struct = [ |
184 | "Objects API" => [ |
- | |
185 | '('._L('Receive').') GET objects/<abbr title="'._L('e.g. %1', 'oid:2.999').'">[id]</abbr>' => [ |
184 | '('._L('Receive').') GET objects/<abbr title="'._L('e.g. %1', 'oid:2.999').'">[id]</abbr>' => [ |
186 | _L('Input parameters') => [ |
185 | _L('Input parameters') => [ |
187 | '<i>'._L('None').'</i>' |
186 | '<i>'._L('None').'</i>' |
188 | ], |
187 | ], |
189 | _L('Output parameters') => [ |
188 | _L('Output parameters') => [ |
Line 247... | Line 246... | ||
247 | ], |
246 | ], |
248 | _L('Output parameters') => [ |
247 | _L('Output parameters') => [ |
249 | 'status|error' |
248 | 'status|error' |
250 | ] |
249 | ] |
251 | ] |
250 | ] |
252 | ] |
- | |
253 | ]; |
251 | ]; |
254 | return self::array_to_html_ul_li($struct); |
252 | return self::array_to_html_ul_li($struct); |
255 | } else { |
253 | } else { |
256 | throw new OIDplusException(_L('Invalid REST API information format'), null, 500); |
254 | throw new OIDplusException(_L('Invalid REST API information format'), null, 500); |
257 | } |
255 | } |