Skip to content

Commit 0af36c4

Browse files
changes after review, filter, examples
1 parent aaff6e7 commit 0af36c4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: @xen-orchestra/rest-api/src/open-api/oa-examples/pool.oa-example.mts

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ export const poolIds = [
55

66
export const partialPools = [
77
{
8-
name_label: 'foo',
9-
uuid: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
8+
name_label: 'XCP 8.3.0 XO Team',
9+
id: 'b7569d99-30f8-178a-7d94-801de3e29b5b',
1010
href: '/rest/v0/pools/b7569d99-30f8-178a-7d94-801de3e29b5b',
1111
},
1212
{
13-
name_label: 'bar',
14-
uuid: '355ee47d-ff4c-4924-3db2-fd86ae629676',
13+
name_label: 'XO Lab',
14+
id: '355ee47d-ff4c-4924-3db2-fd86ae629676',
1515
href: '/rest/v0/pools/355ee47d-ff4c-4924-3db2-fd86ae629676',
1616
},
1717
]

Diff for: @xen-orchestra/rest-api/src/pools/pool.controller.mts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export class PoolController extends XapiXoController<XoPool> {
2121

2222
/**
2323
*
24-
* @example fields "name_label,power_state,uuid"
25-
* @example filter "power_state:Running"
24+
* @example fields "name_label,id"
25+
* @example filter "auto_poweron?"
2626
* @example limit 42
2727
*/
2828
@Example(poolIds)

0 commit comments

Comments
 (0)