Create a page through /Sitefinity/Services/Pages/PagesService.svc
I am trying to import an CMS to Sitefinity but i ran into missing documentation for the /Sitefinity/Services/Pages/PagesService.svc service.I don't know what object i must post to create an new page.
I want to create pages for an import script, so i want to use an external website to import the pages to Sitefinity. So i don't have a Sitefinity context. I've looked at the put call of Create page but there are alot of nested objects and GUID that i do not want to copy. I just want an easy create page object. Is this possible?
Here is the documentation for the C# API. It points out the required fields needed. If I were in your situation I would create my own API endpoint and use the server side C# API, it will give you more control.
docs.sitefinity.com/for-developers-create-pages-with-the-native-api
Keep in mind that there are two objects to work with and are similar but both needed Page Node and Page Data
Thanks for the link but this link is in de context of Sitefinity, i just want to call the svc from an external source. I was hoping there is documentation for a json create that is easier then what sitefinity creates in the Create page view.
Here is the documentation to the RESTful web services. docs.sitefinity.com/for-developers-web-services
You can get the help documents for each service like this:
**Note I believe the help for the service only work in IE
This is the JSON that is PUT to the service, should be a good place to start
"Item":
"__type":"WcfPage:#Telerik.Sitefinity.Modules.Pages.Web.Services.Model",
"AdditionalUrlsRedirectToDefaultOne":"false",
"AllowMultipleUrls":"false",
"AllowParameterValidation":"true",
"AvailableLanguages":[
],
"Extension":null,
"FullUrl":null,
"HasChildren":false,
"HasTranslationSiblings":false,
"IsExternal":false,
"LinkedNodeFullUrl":null,
"LinkedNodeId":"00000000-0000-0000-0000-000000000000",
"LinkedNodeProvider":null,
"LinkedNodeTitle":null,
"LocalizationStrategy":0,
"MultipleNavigationNodes":"",
"NodeType":0,
"OpenNewWindow":false,
"ParentId":"00000000-0000-0000-0000-000000000000",
"Path":null,
"ProviderName":null,
"RedirectUrl":"",
"RootId":"f669d9a7-009d-4d83-ddaa-000000000002",
"Title":
"PersistedValue":"service test",
"Value":null,
"ValuesPerCulture":[
]
,
"TitlesPath":null,
"WasPublished":false,
"Attributes":
,
"CacheDuration":0,
"CacheOutput":false,
"CodeBehindType":"",
"Crawlable":"true",
"CustomFields":
,
"Description":
"PersistedValue":"",
"Value":"",
"ValuesPerCulture":[
]
,
"DuplicateChildren":false,
"EnableDefaultCanonicalUrl":"0",
"EnableViewState":"false",
"HeadTagContent":"",
"IncludeInSearchIndex":"true",
"IncludeInSitemap":false,
"IncludeScriptManager":"false",
"IsGroup":"false",
"Keywords":
"PersistedValue":"",
"Value":"",
"ValuesPerCulture":[
]
,
"Language":null,
"NavigateUrl":"/",
"OutputCacheProfile":"",
"Parent":
"Id":"f669d9a7-009d-4d83-ddaa-000000000002",
"WasPublished":true,
"Title":
"Value":"Pages",
"PersistedValue":"Pages",
"ValuesPerCulture":
"":"Pages"
,
"Path":"",
"FullUrl":"",
"HasChildren":true,
"AllowParameterValidation":true,
"ParentId":"00000000-0000-0000-0000-000000000000",
"RootId":"00000000-0000-0000-0000-000000000000",
"TitlesPath":"",
"AllowMultipleUrls":false,
"MultipleNavigationNodes":null,
"AdditionalUrlsRedirectToDefaultOne":true,
"AvailableLanguages":[
],
"LocalizationStrategy":0,
"IsExternal":false,
"LinkedNodeId":"00000000-0000-0000-0000-000000000000",
"LinkedNodeTitle":null,
"LinkedNodeFullUrl":null,
"LinkedNodeProvider":null,
"RedirectUrl":null,
"OpenNewWindow":false,
"ProviderName":"OpenAccessDataProvider",
"NodeType":1,
"HasTranslationSiblings":false,
"IsBackend":false,
"Extension":""
,
"Priority":"1",
"RequireSsl":"false",
"SeoTitle":
"PersistedValue":"service test",
"Value":"",
"ValuesPerCulture":[
]
,
"ShowInNavigation":"true",
"SlidingExpiration":false,
"SourceLanguagePageId":"00000000-0000-0000-0000-000000000000",
"TargetSiteId":"00000000-0000-0000-0000-000000000000",
"Template":
"Id":"6bc59de3-09cf-4024-94c4-7690cab75f8c",
"Title":"1 Column, Header, Footer",
"DuplicateTitle":"1 Column, Header, Footer_copy",
"Framework":1,
"TemplateIconUrl":"/images/systemlibrariesprovider/template-thumbnails/mvc_1columnheaderfooter.png?Status=Master&sfvrsn=c4f8a726_0&MaxWidth=105&MaxHeight=80&ScaleUp=False&Quality=High&Method=ResizeFitToAreaArguments&Signature=E274219409A87BF421B53561D40ED378C16E1631",
"TemplateSmallIconUrl":"/images/systemlibrariesprovider/template-thumbnails/mvc_1columnheaderfooter.png?Status=Master&sfvrsn=c4f8a726_0&MaxWidth=42&MaxHeight=32&ScaleUp=False&Quality=High&Method=ResizeFitToAreaArguments&Signature=73BC93F3D3918087EB5AB97833D119E76A0BE49B",
"EditUrl":"/Sitefinity/Template/6bc59de3-09cf-4024-94c4-7690cab75f8c",
"MasterPage":null,
"NotCreateTemplateForMasterPage":false,
"RootTaxonType":"Frontend",
"AvailableLanguages":[
""
],
"SourceLanguagePageId":"00000000-0000-0000-0000-000000000000",
"SourceLanguage":null,
"Name":"Bootstrap.default"
,
"UrlName":"service-test",
"isPopulatedWithDefaultValues":true,
"IsExternalGroup":null,
"LastModified":"\/Date(1507638109258)\/"