Skip to content

nchabanoles/graphql-bonita-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Bonita Service

This project is a POC. I was willing to add a new Bonita Service to its engine, that would expose a GraphQL API, just by deploying a plug-in jar in the classpath. Possible or not?

Let's try...

Build

./gradlew build

/!\ Some deps must be removed from jar: everything under org/ folder except bson/

Install jar

cp build/libs/graphql-bdm-service-1.0-SNAPSHOT.jar /home/bonita/Versions/7.7/7.7.0-GA/BonitaStudioSubscription-7.7.0/workspace/tomcat/server/webapps/bonita/WEB-INF/lib

Test

http://localhost:8080/bonita/graphql?query=%7B%0AallBooks%7B%0Aname%0A%7D%0A%7D This is the URL encoded version of http://localhost:8080/bonita/graphql?query={allBooks{name}} which list all the books from the system.

http://localhost:8080/bonita/graphql?query=%7BallLoans%7Bcustomer%2Ctype%2Cstatus%7D%7D

Notes

Exposing the endpoint on /API/graphql would allow to preview in the UID but requires to update REST API security

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages