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
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 ...
3
votes
1answer
764 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 ...
7
votes
3answers
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 (...

1
2