I am using the Sitecore Web Api to access my Content tree from a non Sitecore web application, but when I try the request I get an 404 file not found error. I have tripled check the GIUD, so that is not the problem.
The settings in the web.config and sitecore.ItemWebApi.config
<setting name="IgnoreUrlPrefixes" value="....|/-/item/v1/|...."/>
<site name="website">
<patch:attribute name="itemwebapi.mode">StandardSecurity</patch:attribute>
<patch:attribute name="itemwebapi.access">ReadOnly</patch:attribute>
<patch:attribute name="itemwebapi.allowanonymousaccess">true</patch:attribute>
</site>
The HttpWebRequest
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://example.com/-/item/v1/?sc_itemid={5E219167-DCC0-4C28-A123-064CACCCCE69}");
var response = (HttpWebResponse)request.GetResponse();