Skip to content

feat(AIENG:420): Add command to download OpenAPI schema for Smart Tes…#1303

Open
psakthivel04 wants to merge 1 commit into
mainfrom
feat/AIENG-420-schema
Open

feat(AIENG:420): Add command to download OpenAPI schema for Smart Tes…#1303
psakthivel04 wants to merge 1 commit into
mainfrom
feat/AIENG-420-schema

Conversation

@psakthivel04
Copy link
Copy Markdown
Contributor

@psakthivel04 psakthivel04 commented May 22, 2026

This pull request adds a new CLI command to download the OpenAPI schema for the Smart Tests API. The main focus is the introduction of the api_schema command, which enables users to fetch and save the API schema as a JSON file. Additionally, the command is registered in the CLI structure.

New API Schema Download Feature:

  • Added a new api_schema command in smart_tests/commands/get/api_schema.py that allows users to download the OpenAPI schema from the /intake/v3/api-docs endpoint and save it to a specified file. The command handles error cases gracefully and provides user feedback.
  • Registered the new api_schema command in the get command group by importing and adding it in smart_tests/commands/get/__init__.py. [1] [2]…ts API

Manual testing:

image

is it downloaded?- yes
image

can we able to import in swagger editor? yes

image

@psakthivel04 psakthivel04 requested a review from Konboi May 22, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant