UrielCh / proxmox-api

TypeScript Api for proxmox
56 stars 15 forks source link

Hyphen in URL #1

Closed Pacerino closed 3 years ago

Pacerino commented 3 years ago

Hey there!

I've ran into a problem with the Qemu Agent. When i try to call /nodes/{node}/qemu/{vmid}/agent/get-fsinfo Typescript will interpret the hyphen as a subtract and throw an error. Do you have an idea how i can fix this or some kind of workaround?

Greetings from germany!

image image

Pacerino commented 3 years ago

Found a Workaround for this:

theNode.qemu.$(vmid).agent["get-fsinfo"].$get()

Maybe this should me mentioned in the readme? @UrielCh

UrielCh commented 3 years ago

I never used any call with an Hyphen.

I will add a note about Hyphen for my next API update.

UrielCh commented 3 years ago

ReadMe updated.