Add a new OpenAPI v3 REST API to warewulfd at /api

Co-authored-by: jason yang <jasonyangshadow@gmail.com>

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-03-02 13:32:41 -07:00
parent bf0fc8bb27
commit 4005afac4c
42 changed files with 2730 additions and 345 deletions

View File

@@ -459,27 +459,9 @@ nodes:
stdout: `
{
"n01": {
"Discoverable": "",
"AssetKey": "",
"Profiles": [
"profiles": [
"default"
],
"Comment": "",
"ClusterName": "",
"ImageName": "",
"Ipxe": "",
"RuntimeOverlay": null,
"SystemOverlay": null,
"Kernel": null,
"Ipmi": null,
"Init": "",
"Root": "",
"NetDevs": null,
"Tags": null,
"PrimaryNetDev": "",
"Disks": null,
"FileSystems": null,
"Resources": null
]
}
}
`,
@@ -498,50 +480,14 @@ nodes:
stdout: `
{
"n01": {
"Discoverable": "",
"AssetKey": "",
"Profiles": [
"profiles": [
"default"
],
"Comment": "",
"ClusterName": "",
"ImageName": "",
"Ipxe": "",
"RuntimeOverlay": null,
"SystemOverlay": null,
"Kernel": null,
"Ipmi": null,
"Init": "",
"Root": "",
"NetDevs": null,
"Tags": null,
"PrimaryNetDev": "",
"Disks": null,
"FileSystems": null,
"Resources": null
]
},
"n02": {
"Discoverable": "",
"AssetKey": "",
"Profiles": [
"profiles": [
"default"
],
"Comment": "",
"ClusterName": "",
"ImageName": "",
"Ipxe": "",
"RuntimeOverlay": null,
"SystemOverlay": null,
"Kernel": null,
"Ipmi": null,
"Init": "",
"Root": "",
"NetDevs": null,
"Tags": null,
"PrimaryNetDev": "",
"Disks": null,
"FileSystems": null,
"Resources": null
]
}
}
`,