Questions tagged [webapi]

For questions related to the ASP.NET Web API framework, whether writing APIs to manage content or functionality in Sitecore, or consuming data from APIs written using Web API (e.g., the Sitecore ItemService).

Filter by
Sorted by
Tagged with
7
votes
3answers
4k views

WebAPI Controllers not being found

I'm working in a Helix-ish solution on Sitecore 8.2. I can't seem to register any WebAPI controllers. The routes are fine. I've dug pretty far into the GlobalConfiguration and determined that it's ...
11
votes
4answers
20k views

WebApi failing to resolve dependencies

I am trying to resolve an implementation via constructor injection, however keep getting the following: An error occurred when trying to create a controller of type 'ApiController'. Make sure that ...
7
votes
2answers
679 views

How can I utilise MongoDB for non-xDB related things in my Sitecore solution?

Assuming we have a sparking new Sitecore installation running, and have already invested in the relevant MongoDB infrastructure to keep the solution running 24x7 and so on - how can I make further use ...
1
vote
3answers
1k views

/api/sitecore is not working in CD server

Sitecore Version: 9.0.2 Environment: Azure PaaS CD We are trying to call /api/sitecore/controller/actionname with AJAX. It's working on the CM server but not on the CD server. I disabled custom ...
3
votes
2answers
1k views

Web API 404 on content delivery server

I am using Sitecore on azure and have a CD and a CM server. The Web API works fine on CM but throws a 404 error (and no more information in logs). I have deleted the following dll files from server ...
13
votes
1answer
2k views

Web API 2 Attribute Routing with Sitecore 8.2+

Has anybody set up Web API 2 Attribute Routing with 8.2 or later? I tried the 'official' route, which is to create a custom pipeline handler to the initialize pipeline that does the registration. I've ...
7
votes
2answers
3k views

Sitecore 8.2 with Web API 2

Does anybody have any experience with Web API and Sitecore? I've got a custom database for data not managed by Sitecore, but will be presented alongside Sitecore data. The API calls work fine when ...
3
votes
1answer
1k views

publish item remotely using c#

For testing purposes we would like to create publish and remove some items in Sitecore using a remote testing- client in C#. Sitecore.Services.Client api seems the most logical way to create and ...