OpenHouse Specifications

February 14, 2024 ยท View on GitHub

Introduction

All the specs for the OpenHouse services should be maintained in specs directory. The specs should be NOT be editted manually. This document provides the steps to update the specs for the OpenHouse services.

Pre-requisites

Install the Widdershins CLI to convert OpenAPI specification format to markdown.

npm install -g widdershins

Steps to update the specs

  1. Make sure you have the latest version of the OpenHouse services.
  2. Make updates to the API for OpenHouse services.
  3. Pick the service spec you want to update. The first run the build command, followed by spec gen command:
ServiceBuildSpecGenCmdLocation
Catalogs./gradlew clean :services:tables:generateOpenApiDocswiddershins --omitHeader true --search true --language_tabs None --summary build/tables/specs/tables.json -o docs/specs/catalog.mdCatalog
HouseTables./gradlew clean :services:housetables:generateOpenApiDocswiddershins --omitHeader true --search true --language_tabs None --summary build/housetables/specs/housetables.json -o docs/specs/housetables.mdHouseTables
Jobs./gradlew clean :services:jobs:generateOpenApiDocswiddershins --omitHeader true --search true --language_tabs None --summary build/jobs/specs/jobs.json -o docs/specs/jobs.mdJobs
  1. Commit the changes to the specs directory.

You could also use the script to update the specs.