Skip to content
Universal Dashboard REST API Generator for PowerShell
PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Oct 16, 2019
README.md
UniversalDashboard.Outrest.psd1 Add description. Oct 16, 2019
UniversalDashboard.Outrest.psm1 Initial version Oct 16, 2019
test.ps1 Initial version Oct 16, 2019

README.md

UDOutRest

Universal Dashboard REST API Generator for PowerShell

You can use Universal Dashboard OutREST to generate REST API based on Universal Dashboard from Modules and Functions you already have.

Note! This is merely an experiment at this point and will not work in many scenarios.

Installation

Install-Module UniversalDashboard.OutRest

Example

$Endpoints = Out-UDRestApi -Command "Get-Service"
Start-UDRestApi -Endpoint $Endpoints -Port 10000 
Invoke-RestMethod -Method Get -Uri "http://localhost:10000/api/Service"
$Endpoints | Select Url

Url
---
/Service
/Service/:DisplayName
You can’t perform that action at this time.