Skip to main content
Ranjeet's user avatar
Ranjeet's user avatar
Ranjeet's user avatar
Ranjeet
  • Member for 1 year, 11 months
  • Last seen more than 1 year ago
awarded
comment
How to return IHttpActionResult while using SitecoreController
@MarekMusielak I have updated as per your suggestion. Please reopen
revised
Loading…
revised
How to return IHttpActionResult while using SitecoreController
added 814 characters in body; edited title
Loading…
comment
How to return IHttpActionResult while using SitecoreController
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+H‌​ttpActionResult' instead of error message and status code for eg - 'return new HttpActionResult(HttpStatusCode.InternalServerError, "error message"); '
Loading…
awarded
comment
How to replace image in sitecore media library programmatically
Could you please share some example to create patch file for the same.
comment
How to replace image in sitecore media library programmatically
I'm using sitecore 10 headless with Docker. So not able to find above path in my project
comment
How to replace image in sitecore media library programmatically
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
comment
How to replace image in sitecore media library programmatically
Thanks Gaurav, But i want to replace or add new image from outside of sitecore by using Memory stream or URLs
Loading…
awarded
awarded
comment
comment
Is there any way to expose Sitecore Api? So that 3rd party application can use POST request and further sitecore application can manage POST request
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 ?
comment
Is there any way to expose Sitecore Api? So that 3rd party application can use POST request and further sitecore application can manage POST request
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.
comment
Is there any way to expose Sitecore Api? So that 3rd party application can use POST request and further sitecore application can manage POST request
Thanks, but I'm getting error while registering controller in DI (error code CS0012) I'm using framework 4.6 with sitecore 10 (headless).
Loading…