Skip to content

xwiki-contrib/api-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL API

GraphQL API to expose the XWiki model for usecases where REST is too verbose or produces too much back and forward between the client and the server.

Usage

Once installed you can request XWiki using curl:

curl -X POST -H "Content-Type: application/json" -d '{"query": "{ document(documentReference: \"Main.WebHome\") { title, content }}"}' http://localhost:8080/xwiki/graphql

You can also check the whole schema by going on:

http://localhost:8080/xwiki/graphql/schema.graphql

About

GraphQL API to expose the XWiki model for usecases where REST is too verbose or produces too much back and forward between the client and the server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published