data/PembrokePSEndpointRoutes.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function PembrokePSEndpointRoutes
{
    [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingInvokeExpression", '')]
    $script:Routes = @(
        @{
            'RequestType'    = 'GET'
            'RequestURL'     = '/status'
            'RequestCommand' = 'return 0'
        }
        @{
            'RequestType'    = 'GET'
            'RequestURL'     = '/selftest'
            'RequestCommand' = "c:\PembrokePS\rest\GET\Invoke-SelfTest.ps1"
        }
        @{
            'RequestType'    = 'PUT'
            'RequestURL'     = '/selftest'
            'RequestCommand' = "c:\PembrokePS\rest\PUT\Invoke-SelfTest.ps1"
        }
        @{
            'RequestType'    = 'POST'
            'RequestURL'     = '/selftest'
            'RequestCommand' = "c:\PembrokePS\rest\POST\Invoke-SelfTest.ps1"
        }
        @{
            'RequestType'    = 'DELETE'
            'RequestURL'     = '/selftest'
            'RequestCommand' = "c:\PembrokePS\rest\DELETE\Invoke-SelfTest.ps1"
        }            
    )
}
PembrokePSEndpointRoutes