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
2 answers
684 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 ...
user avatar
  • 24.4k
13 votes
1 answer
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 ...
user avatar
  • 447
3 votes
1 answer
792 views

"String was not recognized as a valid DateTime" error

Images do not appear in Select Media dialog when I click Browse button in Image field. HTTP response from ItemWeb API that expected to return Images contains this error: String was not recognized ...
user avatar
7 votes
3 answers
3k views

How do I control access to Custom Item Web API controllers?

I am creating a Web API (Controller) inside my Sitecore solution by inheriting ServicesApiController and EnableCors attribute. This service will be called from any IPhone/Android Application (...
user avatar

1
2