API to create / manage pages
complete
Diego
How to use it? I can't get it
A
Alex Bo
Diego:
like that :
mutation {
pages{create(content : "<a>Test content</a>",
description: "Test import",
editor: "ckeditor",
isPublished: true,
isPrivate: true,
locale: "ru",
path: "path",
tags: [],
title: "Test import"){
responseResult{
message
}
}
}
}
You could use Dev tools/ GraphQL in Administration console to create and execute queries. There is also a function to download schema and import it to the Postman app to generate Postman collection.
kilian
is there any documentation or some examples availible on how to create/delete pages through an api call? i already read https://docs.requarks.io/dev/api but did not find it very helpfull (i am also relatively new to api calls though)
b
bruno
kilian: I search more docs and example about mutation pages too ;-)
Nicolas Giard
complete
Completed in upcoming 2.2 update.
Ivan
Page deletion works perfectly fine from graphql playground! However, if page deletion mutator could accept a range of page ids, it would be even better.
Stefaan Vandevelde
Would be a great asset for wiki.js
Nicolas Giard
in progress
Nicolas Giard
Wiki.js 2.0.0 will offer a fully featured GraphQL API to manage pages, users, etc.
Nicolas Giard
planned
quicker
The RESTful API will be great.
vote: pages(put,get both in .html and .md) uploads, search