Questions tagged [sitecore-services-client]

All questions about the Sitecore.Services.Client. SSC provides a service layer on both the server and the client side of Sitecore applications that you use to develop data-driven applications.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

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

I'm trying to get the links for an item using item services. For this, I need to query the link database. Can anyone tried querying link database using Sitecore.services.client item service? ex : ...
-1
votes
2answers
31 views

How to get the Item referrers using Item Web API / Sitecore Services Client in C#? [duplicate]

I have created Items using Item Web API. Now I want to get the unused items on my site. So I'm trying to get the item references using Item Web API. var referrers = Globals.LinkDatabase.GetReferrers(...
1
vote
1answer
30 views

.Net SDK Wrapper for Sitecore SSC REST API Item Service

As we know, Sitecore provides the ItemService [link] for developers to have a REST API interface for interacting with Sitecore items. What I am trying to achieve is to consume this REST Api from the ...
0
votes
1answer
78 views

Using fast query in Sitecore Services Client RESTful API

Is there any to use the fast query in Sitecore Services Client API? (Sitecore 9.0.1) I need to find an item with a particular name within a specific location and based on specific template. I'm able ...
1
vote
1answer
43 views

Sitecore Entity Service on version 9.3

I have a Sitecore Entity Service implementation based on official documentation. https://doc.sitecore.com/developers/90/sitecore-experience-manager/en/create-an-entityservice.html It was working fine ...
0
votes
0answers
35 views

Generate downloadable link in Odata item service

I want add some media and files in sitecore and expose it through Odata Item Service to so that an external system can download the file from sitecore. But when we request any item over Odata, getting ...
2
votes
1answer
161 views

How to authenticate with SSC REST API using Item service auth

I've been trying to use Sitecore SSC REST API to create an item. I can login, but that is as far as I get - every other request (even to get an item) returns forbidden. I've already changed the ...
2
votes
2answers
135 views

Authenticating via RESTful API service

When using Postman to connect and authenticate to the actual RESTful API service through Postman, I keep getting the same problem: { "Message": "An error has occurred.", "ExceptionMessage": "Object ...
1
vote
1answer
49 views

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

What is the purpose of disabled.aspx page under sitecore\service\xdb? When I open this page manually, it's displaying below information. In which case this page will be executed?
1
vote
3answers
3k views

How to Return 401 Response from OnAuthorization Method - ServicesApiController

I am exposing web API through ServicesApiController and want to authorize user through [AuthorizedUser(@"sitecore\ServicesAPI")] attribute of the function, everything is working fine, but instead of ...
1
vote
0answers
141 views

Sitecore Items Services API requests from CD Server

The below Url is working fine in our development environment and we want to move the respective config changes to Production CD Server only in order to make those API's public. Will the below API ...
2
votes
1answer
703 views

Refused to get “Unsafe Header - Location” while getting response header in item service

I'm trying to create an item using ItemService in Sitecore.Services.Client. Item creation is working fine and response looks like this: 201 (Created). Location: /item/0727f965-2338-43cc-bd88-...
2
votes
2answers
826 views

500 Internal server error during item creation using Sitecore.services.client

I tried to create an item using Item Service in Sitecore.Services.Client. But when I try to create an item am facing 500 Internal server not found error during item creation. Below I attached ...
3
votes
2answers
435 views

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

I just can't stop the "Sitecore XConnect Search Indexer" service. Please note that I just removed everything related to XConnect from this machine. I'm trying to stop this service to be able to re-...
-1
votes
1answer
58 views

Add a custom property to the Sitecore services client api call results

I have a requirement to get the full presentation details (layout field + final layout field) using Sitecore services client api call. Now i am receiving the results as two different property fields (...
2
votes
2answers
798 views

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

If we wanted to provide data (get/set operations on content tree, analytics, personalization, tracking data) from Sitecore 9 to native mobile apps (not based on Sitecore Mobile SDK and Xamarin but ...
1
vote
1answer
488 views

Import Media Items in Sitecore Media Library ItemService Restfull API

We are implementing a solution that requires importing media items like images inside Sitecore Media Library. Found it is achievable with Old WebApi, however nothing mentioned equivalent in Sitecore ...
1
vote
1answer
518 views

“Method not allowed” when using post request to create item

I modified to allow anonymous setting to true in Sitecore.Services.Client.config var xhrp = new XMLHttpRequest(); xhrp.open("POST", "http://sitecorenew.sc/sitecore/api/ssc/item/sitecore%...
1
vote
1answer
2k views

Sitecore services client 403 Forbidden

We have a remote instance http://dev-instance/sitecore/login. I have followed all the steps in this article and got the token in postman for https://dev-instance/sitecore/api/ssc/auth/login But when ...
2
votes
1answer
269 views

Injecting dependencies into custom ServicesApiController without using ServiceLocator

I am injecting a dependency into a custom API controller I've created that is inheriting from ServicesApiController. I have found that I need to use our service locator class to do this as otherwise, ...
1
vote
1answer
467 views

Advantages of servicesapicontroller over api controller

I've been looking for best way to expose a api that returns data in Sitecore and I found some implementation which use ServicesApiContorller, what are the advantages of using this controller over ...
3
votes
2answers
1k views

Authentication / Login for Custom ServicesApiController

I've created a custom API Controller that inherits from ServicesApiController. I've created also custom route and it all works fine. Something like the following: public class ExampleController : ...
1
vote
1answer
479 views

Sitecore GEOIP Issue with load balancer

In a project, I have implemented Sitecore GEOIP to get visitor's country information. In local, it was working fine but when we deployed it in Production environment, GEOIP was not able to get visitor'...
2
votes
1answer
424 views

Service based architecture in sitecore

I am analysing on the possibility of creating a web application using Sitecore where the web application is pure thin client using js based framework (knockout or angular) which can consume the ...
2
votes
0answers
61 views

Is there any way to delay publishing and indexing when updating or creating items with the ItemService?

I am syncing a significant amount of data into Sitecore from external systems on a fairly regular basis. To do this, I am utilizing the Sitecore ItemService. The problem I'm currently facing is that ...
5
votes
0answers
44 views

Is it possible to personalize content via Xamarin SDK or SSC using rules?

I was looking into Xamarin SDK and Creating a SSC to provide data to a Xamarin App, but I was wondering ... Is there a way to personalize data shown in Xamarin(or any Mobile App for that matter) based ...
3
votes
1answer
111 views

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

Sitecore 7.2 Analytics DB records has grown in size to 200 GB+. Does anyone know of any recommendation for purging old data and this is a production setup so the impact of this data being removed ...
1
vote
1answer
984 views

Creating Media Items using the RESTful ItemService API

Quick background, re-building a "product importer" exe that was written for v7 using the old web API and ideally want to replicate all the old logic to work in the new v8 site using the RESTful ...
3
votes
3answers
290 views

How to create web service on Sitecore Paas

I have Sitecore on Azure "Paas". I need to expose some Sitecore functionality to external system, for example allow external system to create Sitecore item. Normally I would create a web service for ...
3
votes
2answers
655 views

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

I have the following scenario on Sitecore 8.2 (MVC Project) I have a scaled Sitecore (CM/CD), and after the user hits a page on CD Server, it needs to update a Sitecore Item, that contains a field ...
0
votes
2answers
309 views

Using Sitecore.Services.Client to provide XML Feeds

I have been requested to provide an XML feed for Sitecore items, as for example an XML feed for News section, All the fields should be provided using this XML Feeds, I wonder if I can do this using ...
1
vote
0answers
425 views

Create Item using REST API and Branch as template

I'm trying to use The RESTful API for the ItemService to create items based off a branch template. When I pass the branch ID as the TemplateID in the request, the service returns a 400 "Template is ...
8
votes
1answer
382 views

Custom field not returned via Item API

I am using the Sitecore Item Rest API and all the existing fields (both standard and custom) I need to use from the template come back fine (e.g: Start Date below). However I've added a new one (a ...
10
votes
2answers
5k views

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

I was having an issue on a clients Staging environment where I was trying to use the Sitecore Item API to get items and I was getting an 403 error. It worked fine locally, I have a login method that ...
5
votes
2answers
262 views

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

ASP.NET Web API 2 allows to set route name on a controller: Route names are useful for generating links, so that you can include a link in an HTTP response. I define two controllers, each of them ...
7
votes
1answer
696 views

Sitecore Services Client EntityService Token Authentication InputStringError

Using Sitecore 8.2 Update 3 I am using the Sitecore Services Client EntityService with Token authentication. When I try to access to the service after the token has expired, I should get a 403, but ...
3
votes
1answer
565 views

Best way to Use Sitecore Data for other Application?

I need to create the separate ASP.NET Web API 2 Application for the Native mobiles Apps (Andriod and IOS), that will consume the Sitecore web application data. Currently it’s on the same solution and ...
2
votes
1answer
281 views

Expose Sitecore/Sitecore Commerce Items to third party by using custom API

Below are the possible ways to expose sitecore data to third party: Item Web API Sitecore Client Services Data exchange framework Sitecore Data Providers I've following challenges to implement these ...
4
votes
2answers
691 views

How do I remove /sitecore from API calls?

A client I'm working with has an internal API built that they use for search purposes, now API URLs are being built like this: website/internal-api/sitecore/controller/method My Question is if there ...
4
votes
0answers
204 views

After replacing default DI container Sitecore 8.2 Sitecore ItemService and EntityService stop working

Thanks to Dmytro Shevchenko http://structuredcode.com/replacing-default-di-container-sitecore-8-2/ We are replacing default DI Container with Windsor Castle. All project works perfectly fine, except ...
3
votes
3answers
3k views

Is there an API for item creation?

We're in the process of integrating with a product management tool to automate the process of item/product creation within our system. I know that Sitecore has the ability to pass back the objects ...
1
vote
0answers
613 views

Sitecore Item Web API error - Invalid item ID in query string

I'm having an issue creating an item remotely using the item web API. Having tried several permutations of what is in the documentation, I am repeatedly seeing the following in logs: ERROR Invalid ...
2
votes
2answers
295 views

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

I have been doing some reading on Sitecore.Services.Client framework for a project for which I am required to use and consume Sitecore as a data repository. The data in Sitecore will be some Html ...
6
votes
2answers
484 views

Sitecore Services Client 8.2 ODataController - 406 Not Acceptable error

I am trying to request a GET using SSC ODataController with Sitecore 8.2 and it keeps throwing a 406 Not Acceptable error. URL - http://sc82/sitecore/ssc/api/example-controller/products This is the ...