PowerShell / DSC

This repo is for the DSC v3 project
MIT License
201 stars 29 forks source link

REST API resource #293

Open SteveL-MSFT opened 8 months ago

SteveL-MSFT commented 8 months ago

Summary of the new feature / enhancement

Would it make sense to have a resource that simply performs REST calls? get would be GET, set would be POST, and test wouldn't be implemented (so synthesized).

Proposed technical implementation details (optional)

The resource would need these properties:

For the returned payload, it would be useful to have access to the headers, so the response would be wrapped in a response object that includes header, body, etc... rather than the raw response from the REST call.

Idempotency can't be enforced other than trying a get before set.