all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: Proxmox Datacenter Manager development discussion
	<pdm-devel@lists.proxmox.com>,
	Dietmar Maurer <dietmar@proxmox.com>
Subject: Re: [pdm-devel] Howto access raw response data with pdm-client
Date: Thu, 16 Oct 2025 10:10:58 +0200	[thread overview]
Message-ID: <acb51af1-f6f4-49dc-a1c9-a7f9b0359f8c@proxmox.com> (raw)
In-Reply-To: <mgs6fau1.2o20571o3ok00@proxmox.com>



On 10/15/25 6:06 PM, Dietmar Maurer wrote:
> We currently use proxmox-yew-comp::ApiLoadCallback for many widgets.
> 
> This callback returns Result<ApiResponseData<T>, Error>, and
> we use it most times with Result<ApiResponseData<Value>, Error> to access
> raw response data.
> 
> Is there a way to get that data using pdm-client?
> 

after talking a bit off-list with dietmar, one solution to the problem
could be to not use the statically typed methods but instead provide a
method to generate the url and we use that + e.g. http_post/get/etc. to
make api calls (which can convert the parameter with Serialize and the
return type with Deserialize)

with that we can also use `Value` if needed and can extract the 
auxiliary data from the api call too?


_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


  reply	other threads:[~2025-10-16  8:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-15 16:06 Dietmar Maurer
2025-10-16  8:10 ` Dominik Csapak [this message]
2025-10-16  8:27   ` Wolfgang Bumiller
2025-10-16  8:50     ` Dominik Csapak
2025-10-16  9:03       ` Wolfgang Bumiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=acb51af1-f6f4-49dc-a1c9-a7f9b0359f8c@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=dietmar@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal