Skip to content

Commit 15404d1

Browse files
AvielSegevmachacekondra
authored andcommitted
Changing the res from GET /agents and /sources to be returned without the default inventory and adding support of Param which add the example report if needed
Signed-off-by: Aviel Segev <asegev@redhat.com>
1 parent 2f0f0b3 commit 15404d1

File tree

11 files changed

+238
-73
lines changed

11 files changed

+238
-73
lines changed

api/v1alpha1/openapi.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ paths:
1414
- source
1515
description: list sources
1616
operationId: listSources
17+
parameters:
18+
- name: include_default
19+
in: query
20+
description: control whatever the default report should be added to the result
21+
required: false
22+
schema:
23+
type: boolean
1724
responses:
1825
"200":
1926
description: OK
@@ -256,6 +263,13 @@ paths:
256263
- agent
257264
description: list agents
258265
operationId: listAgents
266+
parameters:
267+
- name: include_default
268+
in: query
269+
description: control whatever the default report should be added to the result
270+
required: false
271+
schema:
272+
type: boolean
259273
responses:
260274
"200":
261275
description: OK

api/v1alpha1/spec.gen.go

Lines changed: 35 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/types.gen.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/client/client.gen.go

Lines changed: 58 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)