Skip to main content
20 votes
Accepted

Getting item from the Sitecore Item Service API not working remotely (403 Forbidden)

The issue here turned out to be the Sitecore.Services.SecurityPolicy setting. By default it only allows local requests to the API and as I have more servers in the mix and a load balancer on Staging ...
Adam Seabridge's user avatar
15 votes
Accepted

Web API 2 Attribute Routing with Sitecore 8.2+

This should actually now work out of the box on Sitecore 8.2+ including Sitecore 9 and 10 with no additional code or configuration required. Among the resolved issues from the 8.2 release notes: ​...
Søren Kruse's user avatar
  • 3,245
10 votes

Service based architecture in sitecore

Yes, it is possible to achieve your architecture using Sitecore. There are a few options for you here to do headless implementations, each with their own advantages and disadvantages, and different ...
Jason St-Cyr's user avatar
  • 6,791
8 votes

Best way to Use Sitecore Data for other Application?

This is a tricky question to answer as what is "best" can often depend on your solution. So let's look at the options: Item Web API - as @sitecorebasics said, the Item Web API is not supported in ...
Richard Seal's user avatar
  • 20.5k
6 votes
Accepted

How to programmatically update item on master database from Content Delivery MVC Sitecore 8

Assuming you have xDB enabled you could perhaps use MongoDB to store your data instead. There look to be a few approaches for doing this: 1) custom page events: This looks like your best bet, Here ...
Adam Seabridge's user avatar
6 votes
Accepted

Is there an API for item creation?

Item Web API For Sitecore versions from 6+ till 8 you should use the Sitecore Item Web API. Documentation is available here: link Creating an Item from a Template To create an item called ...
Andrey Bobrov's user avatar
6 votes

Share Sitecore content to Native Mobile Apps (IOS swift and Android java)

In my point of view, JSS is pretty suite for your requirements. I've implemented something like you want with Xamarin. But I think it doesn't matter with which technology to do that because I didn't ...
Artem Prashkovich's user avatar
5 votes
Accepted

Sitecore services client 403 Forbidden

Below are different security policies for the Sitecore services. These were mentioned in "Sitecore.Services.Client.config". In order to make your services accessible remotely we would need to set ...
Manohara Prasad's user avatar
4 votes

Sitecore Services Client 8.2 ODataController - 406 Not Acceptable error

The pure HTTP GET request to your ProductController, assuming it was registered by the aggregate descriptor as being part of the custom service, should look something like: GET /sitecore/api/ssc/...
Kevin Obee's user avatar
4 votes

EntityService-based controllers stop working when adding a controller with a named route

This will be the way the routes get registered when applied by attributes. The correct way to register your own routes with Sitecore is to write a custom initialize pipeline processor and patch it in ...
Richard Seal's user avatar
  • 20.5k
4 votes
Accepted

Can't stop the "Sitecore XConnect Search Indexer" service on Sitecore 9.0.1

Tried a reboot? Sounds like it is in a deletion state and a reboot will clear it. When you delete a service and it is in state that cannot be removed, it flags it as "To be removed". And it is not ...
Chris Auer's user avatar
  • 13.1k
3 votes

Authentication / Login for Custom ServicesApiController

Since you say you were thinking of requiring the use of the auth/login endpoint before requests can be made to your custom controller, what you can do is add the Authorize filter as an attribute to ...
Richard Leiva's user avatar
3 votes

How do I remove /sitecore from API calls?

With WebAPI you may define your custom controller routes using Route attribute. The controller below excludes the /sitecore prefix from the URL and accessible as <hostname>/api/my: [RoutePrefix(...
Serhii Shushliapin's user avatar
3 votes

Minimum Sitecore references required to implement an API solution using Sitecore.Services.Client framework?

You don't need to reference any Sitecore dlls in order to be able to use the Sitecore REST API. These APIs are defined in the developer's guide available on SDN. (This document does not seem to have ...
Adam Conn's user avatar
  • 1,047
3 votes

Minimum Sitecore references required to implement an API solution using Sitecore.Services.Client framework?

As per the Sitecore Nuget feed, https://sitecore.myget.org/feed/sc-packages/package/nuget/Sitecore.Services.Client, these are the required assemblies/frameworks needed by the Sitecore.Services.Client ...
Søren Engel's user avatar
  • 1,523
3 votes

Is there an API for item creation?

You can also use the Sitecore ItemService API to do this like so: var xhr = new XMLHttpRequest(); xhr.open("POST", "http://<your server>/sitecore/api/ssc/item/sitecore%2Fcontent%2Fhome "); xhr....
Adam Seabridge's user avatar
3 votes
Accepted

What is the purpose of disabled.aspx under sitecore\service\xdb?

This seems to be undocumented feature of Xdb. I couldn't find any reference in the documentation when you should use this page. Based on what's written in comment in App_Config\Sitecore\Marketing....
Peter Procházka's user avatar
3 votes

Authenticating via RESTful API service

Try to add credentials to the request body: Tip: You may switch to the Bulk Edit mode (on the right) and inject data as text: domain:sitecore userName:admin password:b
Serhii Shushliapin's user avatar
3 votes

How to authenticate with SSC REST API using Item service auth

It’s a bit hard to know what’s going on without seeing your code and config and knowing your Sitecore version but some things to check are: Login Cookies Are you getting the login cookies from the ...
Adam Seabridge's user avatar
3 votes
Accepted

How to get the link database using sitecore.services.client item service?

It is not possible to get any information from the Link Database using Sitecore Services Client (ItemService). As the documentation states ( https://doc.sitecore.com/developers/93/sitecore-experience-...
Marek Musielak's user avatar
  • 23.9k
2 votes

Is there an API for item creation?

You can use sitecore Sitecore Item Web API to create an item. http://[host_name]/-/item/v1/sitecore/Content/Home?name=MyItem&template=Sample/Sample Item&sc_database=master Also make sure you ...
Balaji Kuppuswamy's user avatar
2 votes

Sitecore Services Client 8.2 ODataController - 406 Not Acceptable error

A client (e.g. your browser) can indicate to the webserver the characteristics of the data it will accept back from the webserver. This is done using 'accept headers' of the following types: Accept: ...
Gatogordo's user avatar
  • 20.1k
2 votes

How do I remove /sitecore from API calls?

As I see it, your options are: Change the routing setup to remove the /sitecore part from the expected route information. Not knowing your code, this could have side effects and would need a thorough ...
Richard Seal's user avatar
  • 20.5k
2 votes
Accepted

Sitecore Services Client EntityService Token Authentication InputStringError

TL;DR The SigningTokenProvider is instantiated in the constructors of the Sitecore.Services.Infrastructure.Sitecore.Security.TokenDelegatingHandler (which you discovered and shared with me offline). ...
Zachary Kniebel's user avatar
2 votes

How to create web service on Sitecore Paas

If your question is what is the best approach to allow external resources to interact with Sitecore, and not about how to create a web service: I wouldn't re-invent the wheel. If you just need to ...
Vicent Galiana's user avatar
2 votes

Sitecore 7.2 Analytics DB records grown in size to 200 GB+

One option is to used Analytics Database Manager You have to use Analytics Database Manager 2.1 This version works with: Sitecore CMS 6.5 - 7.2 These module it helps you to run next tasks : ...
Vlad Iobagiu's user avatar
  • 18.6k
2 votes

Sitecore GEOIP Issue with load balancer

For most load balancers it is indeed the following case sensitive setting: <setting name="Analytics.ForwardedRequestHttpHeader" value="X-Forwarded-For" /> However, you may want to check with ...
David Walker's user avatar
2 votes

How to create web service on Sitecore Paas

You can still create web services using Azure Platform Services, including: Azure Functions with HTTP Trigger will enable you to make external Web service calls and Functions can then make API calls ...
Konstantin's user avatar
2 votes
Accepted

Share Sitecore content to Native Mobile Apps (IOS swift and Android java)

To add more to Artsem's answer and to answer the additional questions that were not answered. If we wanted to provide data (get/set operations on content tree, analytics, personalization, ...
Sergey Krivchenko's user avatar
2 votes

Can't stop the "Sitecore XConnect Search Indexer" service on Sitecore 9.0.1

In my case, I was also not able to stop the Sitecore XConnect Search Indexer service of my Sitecore 9.0.2 instance. Remember, the Sitecore XConnect Search Indexer service is very closely related to ...
Paulson Maclean's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible