I've worked on Java projects before where we created APIs like:
Request URL: http://mindjet.com/api/accounts/dc074c20-580a-4544-a5f2-6d33b1dc04f8
.NET is a different story though, I'm using .NET WCF services and I end up with something not so nice as those that looks like:
Request URL: http://localhost:65113/Services/Record.svc/search/report/4146/page/1
Is there anyway to remove the .svc
part ( minor I know but still )?
Also, I can't seem to get the post to work with a URITemplates? The only way I'm able to get it to work is something like this:
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
public void Send(EmailDetails details) { ... }
$.ajax({
type: 'POST',
url: 'Services/Email.svc/Send'
})
Thanks!