views:

38

answers:

2

I'm considering to host WCF Rest Service that i've built on IIS 7. The URL to access my service will be something like

api.mycompany.com/applicationName/Service.svc/users/1347

Recently, i've been looking to some REST API implementation with a clean URL like Yahoo API

social.yahooapis.com/v1/user/{guid}/contacts

I'm wondering what will be the best WCF host environment (e.g. Windows Service) or any solution (e.g. URL rewrite module) considering that I dont want to have application name and .svc in my URL so that I can have a completely clean URL for my REST API

A: 

You can use the URL rewrite module in IIS 7 to achieve this.

HTH,
Kent

Kent Boogaart
A: 

You can use UriTemplate Class also look into the WCF Rest Starter Kit.

Here's a good explanation.

http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/1431/Default.aspx

JeremySpouken