zally

module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2018 License: MIT

README

Build Status Codacy Badge Codacy Badge

Zally: A minimalistic, simple-to-use API linter

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

Technical Dependencies

  • 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.

Installation and Usage

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.

Quick start guide

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

Contributing

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.

Roadmap

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.

Contact

Feel free to contact one the maintainers.

License

MIT license with an exception. See license file.

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL