jpsider / RestPS

Simple ReST Framework for Powershell
MIT License
112 stars 30 forks source link

Proposal for variable routes #67

Open anddave opened 2 years ago

anddave commented 2 years ago

Proposal for variable routes

jpsider commented 2 years ago

Makes sense. I have not had the need to add this up to this point. But in dealing with other API's use this type of thing on a normal basis. I am looking forward to reviewing the PR!

anddave commented 2 years ago

This is what it looks like when multiple routes match

INFO: Start-RestPSListener: Processing RequestType: GET URL: /periodictable Args: /RestPS/RestPS/private/Invoke-RequestRouter.ps1:58 Line | 58 | $CommandReturn = . $RequestCommand -RequestArgs $RequestA … | ~~~~~~~~~~~~~~~ | The term | '/periodictable/endpoints/GET/Invoke-EndpointPeriodicTable.ps1 | /periodictable/endpoints/GET/Invoke-EndpointPeriodicTable.ps1' | is not recognized as a name of a cmdlet, function, script | file, or executable program. Check the spelling of the name, | or if a path was included, verify that the path is correct and | try again.