Skip to content

Commit

Permalink
fix: Updating Server Start ( re #1034 )
Browse files Browse the repository at this point in the history
Using Serve.Module
  • Loading branch information
James Brundage committed Apr 15, 2024
2 parents 1cb4e21 + 4bde41c commit c3c8f9b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Commands/Protocols/HTTP-Protocol.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function Protocol.HTTP {
[string]
$ExpandProperty,

[Alias('Property')]
[Alias('Properties')]
[string[]]
$Property
)
Expand Down
4 changes: 4 additions & 0 deletions Commands/Protocols/JSONSchema-Protocol.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[ValidatePattern("(?>JSONSchema|Protocol)")]
param()



function Protocol.JSONSchema {

Expand Down
3 changes: 3 additions & 0 deletions Commands/Protocols/OpenAPI-Protocol.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[ValidatePattern("(?>OpenAPI|Protocol)")]
param()


function Protocol.OpenAPI {

Expand Down
3 changes: 3 additions & 0 deletions Commands/Protocols/UDP-Protocol.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[ValidatePattern("(?>UDP|Protocol)")]
param()


function Protocol.UDP {

Expand Down
18 changes: 15 additions & 3 deletions docs/Protocol.HTTP.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,27 @@ Whatever alternative command provided should have a similar signature to Invoke-
|----------|--------|--------|-------------|
|`[String]`|false |named |false |

#### **ExpandProperty**

|Type |Required|Position|PipelineInput|Aliases |
|----------|--------|--------|-------------|---------------|
|`[String]`|false |named |false |Expand Property|

#### **Property**

|Type |Required|Position|PipelineInput|Aliases |
|------------|--------|--------|-------------|----------|
|`[String[]]`|false |named |false |Properties|

---

### Syntax
```PowerShell
Protocol.HTTP [-CommandUri] <Uri> -ScriptBlock <ScriptBlock> [-ArgumentList <Object>] [-Parameter <IDictionary>] [-Method <String>] [-Invoker <String>] [<CommonParameters>]
Protocol.HTTP [-CommandUri] <Uri> -ScriptBlock <ScriptBlock> [-ArgumentList <Object>] [-Parameter <IDictionary>] [-Method <String>] [-Invoker <String>] [-ExpandProperty <String>] [-Property <String[]>] [<CommonParameters>]
```
```PowerShell
Protocol.HTTP [-CommandUri] <Uri> [-ArgumentList <Object>] [-Parameter <IDictionary>] [-Method <String>] [-Invoker <String>] [<CommonParameters>]
Protocol.HTTP [-CommandUri] <Uri> [-ArgumentList <Object>] [-Parameter <IDictionary>] [-Method <String>] [-Invoker <String>] [-ExpandProperty <String>] [-Property <String[]>] [<CommonParameters>]
```
```PowerShell
Protocol.HTTP [-CommandUri] <Uri> -CommandAst <CommandAst> [-ArgumentList <Object>] [-Parameter <IDictionary>] [-Method <String>] [-Invoker <String>] [<CommonParameters>]
Protocol.HTTP [-CommandUri] <Uri> -CommandAst <CommandAst> [-ArgumentList <Object>] [-Parameter <IDictionary>] [-Method <String>] [-Invoker <String>] [-ExpandProperty <String>] [-Property <String[]>] [<CommonParameters>]
```

0 comments on commit c3c8f9b

Please sign in to comment.