Zally brings order to your sea of APIs. Use it to:
- enable/disable rules on the server side
- configure (some) of the existing rules
- implement your own rules in Kotlin
Its standard configuration will check your APIs against the rules defined in Zalando's RESTful Guidelines, but anyone can use it out-of-the-box.
Zally's easy-to-use CLI uses the server in the background so that you can check your API on the spot. It also features an intuitive Web UI that shows implemented rules and lints external files and (with its online editor) API definitions.
More about Zally:
- OpenAPI-friendly: accepts OpenAPI (fka Swagger) Specifications .yaml and JSON formats; includes a server that lints your OpenAPI files; and parses OpenAPI files using swagger-parser
- Using
x-zally-ignore
extension in your API definition, you can disable rules for a specific API - Applying rule changes is only necessary in the server component
- API-specific code written in Java 8 with Spring Boot for better integration
- Rule implementation is optimal/possible in Kotlin
- Kotlin and Java 8 (server) with Spring Boot
- Golang 1.7+: for CLI
- Node.js 7.6+: for web UI
Find additional details here. With Spring 5, we consider using Kotlin also directly on the API side.
To give Zally a quick try, first run the server locally and then use the CLI tool.
The Server Readme, CLI Readme and Web UI Readme include more detailed installation steps for each component.
You can build and run the whole Zally stack (web-ui, server and database) by executing this script:
./build-and-run.sh
Web UI is accessible on http://localhost:8080
; Zally server on http://localhost:8000
To run zally with github integration:
export GITHUB_OAUTH_TOKEN=your_github_oauth_token
export GITHUB_SECRET=your_github_secret
./build-and-run.sh --bark
Github webhook endpoint is accessible on http://localhost:8081/github_webhook More details about how to registerWebhooks
Zally welcomes contributions from the open source community. To get started, take a look at our contributing guidelines. Then check our Project Board and Issues Tracker for ideas.
For Zally version 1.2, we're focusing on:
- generating new rules
- a new quickstart script
- better integration testing approaches
If you have ideas for these items, please let us know.
Feel free to contact one the maintainers.
MIT license with an exception. See license file.