Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbluemink/Sitecore-GraphQL-Import
Using the GraphQL API for migration content to Sitecore XM Cloud
https://github.com/jbluemink/Sitecore-GraphQL-Import
Last synced: 3 months ago
JSON representation
Using the GraphQL API for migration content to Sitecore XM Cloud
- Host: GitHub
- URL: https://github.com/jbluemink/Sitecore-GraphQL-Import
- Owner: jbluemink
- Created: 2023-10-27T11:59:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-15T09:27:29.000Z (12 months ago)
- Last Synced: 2024-03-21T07:00:40.430Z (8 months ago)
- Language: C#
- Homepage:
- Size: 289 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-Sitecore - Sitecore GraphQL Import - A console app showcases various capabilities of the Sitecore GraphQL API, such as retrieving Sitecore items, obtaining a list of websites, inserting sample items, and uploading media files. (XM Cloud)
README
# Sitecore GraphQL Import
Easily migrate content to Sitecore XM Cloud using the Sitecore Authoring and Management GraphQL API.
See [Seamles Content Migrating with GraphQL](https://uxbee.eu/insights/seamless-content-migration-with-graphql)Utilizing the Sitecore GraphQL API proves to be an efficient strategy for seamlessly migrating content to Sitecore XM Cloud. This approach leverages the power of GraphQL to streamline the transfer process, ensuring a smooth and structured content including media migration experience.
## Overview
This repository provides a C# demo of the Sitecore GraphQL API. The included console app showcases various capabilities, such as retrieving Sitecore items, obtaining a list of websites, inserting sample items, and uploading media files. To get started, simply fill in your hostname, API key, and access token in the app.config file.Please Note: This tool is not limited to Sitecore XM Cloud and is compatible with Sitecore 10.3 and later.
## Sitecore Authoring and Management GraphQL API
This API empowers you to perform mutations on your Sitecore instance.
Authentication: Bearer token## Sitecore Edge Preview GraphQL IDE (CM) API
With this API, you can read items from the master database.
Authentication: GUID (located at /sitecore/system/Settings/Services/API Keys)## Get access token
See [Walkthrough: Enabling and authorizing requests to the Authoring and Management API](https://doc.sitecore.com/xmc/en/developers/xm-cloud/walkthrough--enabling-and-authorizing-requests-to-the-authoring-and-management-api.html)
you can also retrieve it from the .sitecore/user.json file if you have a valid connection in PowerShell with XM Cloud (using 'dotnet sitecore login'). The access token, bearer token is a string of about 5KB in length.## Get API key
(GUID), which can be found below /sitecore/system/Settings/Services/API Keys in Sitecore