Skip to content

Commit

Permalink
Merge pull request #7 from iMvBremen/feature/api-spec-versions-refactor
Browse files Browse the repository at this point in the history
Refactor to /api-specification-versions/{apiSpecificationVersionId} endpoints
  • Loading branch information
avanbremen authored Jan 6, 2025
2 parents 80367f8 + 2a36200 commit 7d6758c
Show file tree
Hide file tree
Showing 215 changed files with 749 additions and 663 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Bundle
run: |
npx @redocly/[email protected] bundle ./src/v1beta1/openapi.yaml --output=./build/openapi.yaml
npx @redocly/[email protected] bundle ./src/v1beta2/openapi.yaml --output=./build/openapi.yaml
- name: Lint
run: |
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

This release refactors `/api-specifications/{apiSpecificationId}/versions` endpoints to
`/api-specification-versions/{apiSpecificationVersionId}` endpoints to allow for querying versions without needing the
`apiSpecificationId`, which brings it in line with other endpoints, like `/information-standard-versions` and
`/trust-framework-versions`. As this is a breaking change, the version has been updated to `v1beta2`.

### Changed

- Change `/api-specifications/{apiSpecificationId}/versions` endpoints to
`/api-specification-versions/{apiSpecificationVersionId}`
- Change `/api-specifications/{apiSpecificationId}/versions/{versionId}/urls` endpoints to
`/api-specification-versions/{apiSpecificationVersionId}/urls`
- Change `/api-specifications/{apiSpecificationId}/versions/{versionId}/declarations-of-conformity` endpoints to
`/api-specification-versions/{apiSpecificationVersionId}/declarations-of-conformity`
- Change `/api-specifications/{apiSpecificationId}/versions/{versionId}/communication-standard-versions` endpoints to
`/api-specification-versions/{apiSpecificationVersionId}/communication-standard-versions`
- Change `/api-specifications/{apiSpecificationId}/versions/{versionId}/information-standard-versions` endpoints to
`/api-specification-versions/{apiSpecificationVersionId}/information-standard-versions`
- Change `/api-specifications/{apiSpecificationId}/versions/{versionId}/trust-framework-versions` endpoints to
`/api-specification-versions/{apiSpecificationVersionId}/trust-framework-versions`
- Change `ApiSpecificationVersion` schema to include `apiSpecificationId` and `apiSpecification`
- Change base path in server URL from `v1beta1` to `v1beta2`

## [0.6.0] - 2024-12-18

This release adds optional properties `communicationStandardVersions` and `trustFrameworkVersions` to
Expand Down
4 changes: 2 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ specification, follow these steps:
npm i -g @redocly/cli
```
3. Bundle the specification from the command line (in the API specification's root folder) for the specific API version
(e.g. `v1beta1`):
(e.g. `v1beta2`):
```shell
redocly bundle ./v1beta1/openapi.yaml --output v1beta1.yaml
redocly bundle ./v1beta2/openapi.yaml --output v1beta2.yaml
```
2 changes: 1 addition & 1 deletion src/bundle.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set Self=%~dp0
set MyPath=%self:~0,-1%

:: Variables
set Version=v1beta1
set Version=v1beta2
set Ext=yaml
set Input=%MyPath%\%Version%\openapi.yaml
set Output=%MyPath%\dist\%Version%
Expand Down
188 changes: 107 additions & 81 deletions src/dist/v1beta1.yaml → src/dist/v1beta2.yaml

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

83 changes: 0 additions & 83 deletions src/v1beta1/api-specifications/versions/urls/_paths/urls.yaml

This file was deleted.

Loading

0 comments on commit 7d6758c

Please sign in to comment.