Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
getting error to install the package "Microsoft.AspNet.WebApi.Client" but after installation its not working still getting red marked under 'CreateResponse' while using 'SitecoreController'. I have also tried to achieve this by 'IHttpActionResult' but in this case i'm getting response as 'Feature.SitecoreAPi.Platform.Controller.TestAPIController+HttpActionResult' instead of error message and status code for eg - 'return new HttpActionResult(HttpStatusCode.InternalServerError, "error message"); '
If i'm adding any image into same path getting error as "Sitecore.Exceptions.DuplicateItemNameException:". I have set existing sitecore path but not working even image name is different. Getting error for PATH only
Yes, i have checked but in that article HTTP GET is used to expose JSON (Like layout service). I want to use HTTP POST to receive some data from other 3rd party tool. Can i use the same way as given for HTTP GET ?
yes I'm working with headless. And i want to use HTTP POST api method within sitecore, so that i can expose api to 3rd party and get data from 3rd party tool via Sitecore api. As I'm new in sitecore so please help me out with an example.