SimpleREST.NET
0.1
A simple and minimal api framework for .net base on Express.js
Loading...
Searching...
No Matches
SimpleRestUriTemplateFormatter.cs
Go to the documentation of this file.
1
namespace
SimpleRest.Api
;
2
public
class
SimpleRestUriTemplateHandler
:
ISimpleRestUriTemplateFormatter
3
{
4
public
string
GetTemplatePattern
(
string
originalTemplatePattern)
5
{
6
string
newPattern = originalTemplatePattern;
7
//handle wildcards at end of url, still working on this to get it working with rfc 6570 and the uritemplate.net classes
8
// newPattern = newPattern.Replace("/*", "/{:.*?}");
9
return
newPattern;
10
}
11
}
SimpleRest.Api.SimpleRestUriTemplateHandler
Definition
SimpleRestUriTemplateFormatter.cs:3
SimpleRest.Api.SimpleRestUriTemplateHandler.GetTemplatePattern
string GetTemplatePattern(string originalTemplatePattern)
Definition
SimpleRestUriTemplateFormatter.cs:4
SimpleRest.Api.ISimpleRestUriTemplateFormatter
Definition
ISimpleRestUriTemplateFormatter.cs:3
SimpleRest.Api
Definition
Enums.cs:1
Src
Default types
SimpleRestUriTemplateFormatter.cs
Generated by
1.12.0