Mocca is a GraphQL client for JVM languages with the goal of being easy to use, flexible and modular. With that in mind, Mocca was designed to offer:
- Simple and intuitive API
- Good end user documentation
- Pluggable HTTP clients
- Pluggable components, relying on great open source libraries, allowing features such as code generation, resilience, parsers and observability
Mocca offers support for:
- GraphQL features
- GraphQL queries and mutations
- Automatic variable definition
- Automatic selection set definition based on DTO response type
- Annotation and String based custom input variables
- Annotation and String based custom selection set
- Static and dynamic HTTP request headers
- Observability via Micrometer
- Resilience via Resilience4J
- Flexible API allowing various pluggable HTTP clients
- Asynchronous support
- CompletableFuture
- Pluggable asynchronous HTTP clients
- User provided executor services
- Request parameters validation via Bean Validation
Please read the Quick Start section in Mocca documentation for instructions on how to start using Mocca quickly.
Please refer to Mocca documentation.
See Mocca release notes.
Please open an issue using our GitHub issues page.
You are very welcome to contribute to Mocca! Read our Contribution guidelines.
This project is licensed under the MIT License.