Skip to content

Add OpenAPI spec covering existing v1 API endpoints#471

Merged
deepthought42 merged 1 commit intomasterfrom
codex/create-openapi-specification-for-api-endpoints
Feb 27, 2026
Merged

Add OpenAPI spec covering existing v1 API endpoints#471
deepthought42 merged 1 commit intomasterfrom
codex/create-openapi-specification-for-api-endpoints

Conversation

@deepthought42
Copy link
Copy Markdown
Owner

@deepthought42 deepthought42 commented Feb 23, 2026

Motivation

  • Provide a machine-readable OpenAPI 3.0.3 specification for the v1 REST surface so API consumers and tooling can discover and validate endpoints implemented in the Spring controllers under src/main/java/com/crawlerApi/api.
  • Represent legacy $variable route notation as standards-compliant path parameters so the spec is compatible with OpenAPI tooling.

Description

  • Added docs/openapi.yaml containing API metadata, server info, JWT bearerAuth security scheme, tags, reusable path/query parameter components, and base schemas (Object, Account).
  • Documented the v1 endpoints discovered in controllers (accounts, audits, auditrecords, auditor, competitors, designsystem, domains, elements, ide-test-export, integrations, pages, testrecords, testusers, userinfo) including HTTP methods, key path/query parameters, request bodies, and binary report responses (Excel/PDF).
  • Converted controller route patterns into OpenAPI paths (e.g. controller $key -> {key}) and added representative request/response shapes so tools can generate clients or docs.

Testing

  • Verified the file exists and committed it (git status / commit) which succeeded.
  • Attempted to lint the spec with npx --yes @redocly/cli lint docs/openapi.yaml which failed due to npm registry access policy (403 Forbidden).
  • Attempted to parse the YAML with Python (import yaml; yaml.safe_load('docs/openapi.yaml')) which failed because PyYAML is not installed in the environment.
  • Manually inspected the generated spec (nl -ba docs/openapi.yaml) to confirm endpoint coverage and parameter definitions (inspection succeeded).

Codex Task


Note

Low Risk
Documentation-only addition; main risk is spec inaccuracies (paths/params/security) misleading client generation, but it does not change runtime behavior.

Overview
Adds a new docs/openapi.yaml OpenAPI 3.0.3 specification for the existing v1 REST API, including server metadata, JWT bearerAuth security scheme, tags, and reusable parameter/schema components.

Documents the main v1 endpoints across accounts, audits/auditrecords/auditor, domains/elements, integrations, and user/test-related routes, including query/path parameters, request bodies, and binary PDF/Excel report responses.

Written by Cursor Bugbot for commit 3900388. This will update automatically on new commits. Configure here.

@deepthought42 deepthought42 merged commit 821321c into master Feb 27, 2026
4 checks passed
@deepthought42 deepthought42 deleted the codex/create-openapi-specification-for-api-endpoints branch February 27, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant