Wednesday, December 10, 2014

Uri Templates

https://github.com/tavis-software/Tavis.UriTemplates

Usage:
        var url = new UriTemplate("http://example.org/{tenant}/customers")
            .AddParameter("tenant", "acmé")
            .Resolve();

        Assert.Equal("http://example.org/acm%C3%A9/customers", url);

No comments:

Post a Comment