I am building a new Rest service with several endpoints and also want to support GraphQL endpoint in the same instance, it is possible to do that with Light-4j?
Asked
Active
Viewed 150 times
1 Answers
0
In the handler.yml, you can define two chains of middleware handlers. One for REST endpoints and one for GraphQL endpoints.
Here is one example that has two chains defined.
In fact, for all the GraphQL example, there are two Rest endpoints generated from the light-codegen for server info and health check.
Take a look at this example and you can add more Rest endpoints.

Steve Hu
- 358
- 2
- 10