openapi_first

(β˜… 219)

openapi_first is a Ruby gem for request / response validation and contract-testing against an OpenAPI API description. It makes APIFirst easy and reliable.

  • .gitignore
  • .gitmodules
  • .rspec
  • .rubocop.yml
  • .rubocop_todo.yml
  • CHANGELOG.md
  • Dockerfile
  • Gemfile
  • Gemfile.lock
  • Gemfile.multi_json
  • Gemfile.rack2
  • Gemfile.rack30
  • Gemfile.rails6
  • LICENSE.txt
  • openapi_first.gemspec
  • Rakefile
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/ahx/openapi_first

Downloads the entire project code from GitHub to your computer.

cd openapi_first

Moves into the project folder you just downloaded.

2. Docker

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t openapi-first .

Builds a runnable image based on the Dockerfile.

docker run -p 8080:80 openapi-first

Runs the built image as an actual container.

βœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

3. Ruby

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Ruby Ruby is required to use the bundle command.
bundle

Type this command into your terminal and run it.

bundle exec ruby benchmarks.rb

Type this command into your terminal and run it.

βœ… If bundle install finishes without errors, continue with the run command from the README (e.g. rails server).

Pulled directly from this repo's README.

// repository documentation