Skip to content

Switch from SwaggerHub to GitHub-rendered OpenAPI Files#633

Merged
BirgitBoss merged 20 commits into
IDTA-01002-3-2_workingfrom
SeBa/switch-from-swaggerhub-to-github-rendered-openapi
Jun 29, 2026
Merged

Switch from SwaggerHub to GitHub-rendered OpenAPI Files#633
BirgitBoss merged 20 commits into
IDTA-01002-3-2_workingfrom
SeBa/switch-from-swaggerhub-to-github-rendered-openapi

Conversation

@sebbader-sap

Copy link
Copy Markdown
Contributor

No description provided.

Replace all SwaggerHub references with GitHub Pages Swagger UI links
and convert OpenAPI $ref to relative paths for self-contained specs.

Changes:
1. Documentation links (44 URLs):
   - Replace app.swaggerhub.com with industrialdigitaltwin.io/aas-specs-api
   - Point to GitHub Pages Swagger UI renderer
   - Files: general.adoc, http-rest-api.adoc, service-specifications-and-profiles.adoc

2. OpenAPI $ref references (5,545):
   - Convert absolute SwaggerHub API URLs to relative paths
   - Pattern: https://api.swaggerhub.com/.../V3.2.0#/... → ../SchemaName/openapi.yaml#/...
   - Makes specs self-contained and independent of external services
   - Files: All 35 service specification YAML files + Part2-API-Schemas

Benefits:
- No dependency on SwaggerHub infrastructure
- OpenAPI parsers can resolve relative paths natively
- Faster resolution (local files)
- Standard OpenAPI practice
- Specs remain fully functional for validation and code generation

BREAKING CHANGE: External tools referencing SwaggerHub URLs must update
to use GitHub Pages or raw GitHub URLs for the YAML files.
Comment thread convert-refs-to-local.sh Fixed
Comment thread convert-refs-to-local.sh Fixed
Comment thread convert-refs-to-local.sh Fixed
Comment thread generate-resolved-specs.sh Fixed
Comment thread generate-resolved-specs.sh Fixed
Comment thread generate-resolved-specs.sh Fixed

@aaronzi aaronzi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good. I think you have missed the Entire-API-Collection/V3.2.yaml. Was that intentional?

Comment thread README.md Outdated
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/http-rest-api/http-rest-api.adoc Outdated
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/general.adoc Outdated
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/changelog.adoc Outdated
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/http-rest-api/http-rest-api.adoc Outdated
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/http-rest-api/http-rest-api.adoc Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated

@BirgitBoss BirgitBoss left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.2.0 consistently changed to ../Part2-API-Schemas/openapi.yaml#

@BirgitBoss BirgitBoss left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I just saw that Aaron had some good points that probably are not yet resolved?

Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/http-rest-api/http-rest-api.adoc Outdated
Comment thread README.md Outdated
Co-authored-by: Aaron Zielstorff <aaron.zielstorff@iese.fraunhofer.de>
sebbader-sap and others added 5 commits June 26, 2026 11:01
Co-authored-by: Aaron Zielstorff <aaron.zielstorff@iese.fraunhofer.de>
- Resolve conflicts by converting SwaggerHub URLs to relative paths
- Include new parameters (AssetIds, CreatedFrom, UpdatedFrom) from base branch
- Merge changelog entries from both branches
- Update Entire-API-Collection/V3.2.yaml: convert all SwaggerHub URLs to relative paths
- Update README.md: remove obsolete SwaggerHub synchronization references
- Clarify that GitHub Pages is now the primary hosting platform
- Remove SwaggerHub GitHub Synchronization section
@sebbader-sap

Copy link
Copy Markdown
Contributor Author

@aaronzi & @BirgitBoss please have a look again.

@aaronzi aaronzi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there are still problems. Sorry for not taking the time to mark the respective parts and just dumping it like this:

general.adoc (line 306): the AAS service link is still malformed: V3.2_SSP-001).yaml, and the link text still says V3.1_SSP-001.

README.md (line 36) and http-rest-api.adoc (line 27): Part 1 links still target ./Part1-MetaModel-Schemas/openapi_3.2.yaml, but the branch only contains Part1-MetaModel-Schemas/openapi.yaml. The ./ also resolves under /docs/, unlike the working ../... links.

http-rest-api.adoc (line 32): Part 2 uses url=./Part2-API-Schemas/openapi.yaml, which likewise resolves under /docs/; other working links use ../Part2-API-Schemas/openapi.yaml.

general.adoc (line 286): still links to missing AssetAdministrationShellRepositoryServiceSpecification/V3.1_SSP-001.yaml.

general.adoc (line 305): the AASX link still has a stray closing ] after the URL.

git diff --check origin/IDTA-01002-3-2_working...HEAD still fails due to trailing whitespace in added YAML lines and extra blank lines at EOF in README.md.

Change from 'application/asset-administration-shell-package+xml' to 'application/aas+zip'
to match the profile specifications (AssetAdministrationShellRepositoryServiceSpecification
and SubmodelRepositoryServiceSpecification).

Note: AASX File Server operations (PostAASXPackage, GetAASXByPackageId, etc.) correctly
keep 'application/asset-administration-shell-package'.
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/changelog.adoc Outdated
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/general.adoc
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/changelog.adoc
Co-authored-by: Birgit Boss <59824205+BirgitBoss@users.noreply.github.com>
Comment thread documentation/IDTA-01002-3/modules/ROOT/pages/http-rest-api/http-rest-api.adoc Outdated
@sebbader-sap sebbader-sap requested a review from BirgitBoss June 26, 2026 16:01
@BirgitBoss BirgitBoss merged commit 8d0c36d into IDTA-01002-3-2_working Jun 29, 2026
3 checks passed
@BirgitBoss BirgitBoss deleted the SeBa/switch-from-swaggerhub-to-github-rendered-openapi branch June 29, 2026 13:40
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.

4 participants