From f40e639ec3259b651fd69dd2814ef14e138dcbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=A3=E8=A8=80=E5=B0=B1=E6=98=AFSiam?= <59419979@qq.com> Date: Thu, 30 Nov 2023 06:37:48 +0000 Subject: [PATCH] Fixed url error for openAPI. --- docs/.vitepress/config.js | 2 +- docs/guide/index.md | 2 +- docs/index.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 468749b52..670afcf10 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -70,7 +70,7 @@ module.exports = { nav: [ { text: "User Guide", link: "/guide/" }, { text: "Reference", link: "/reference/" }, - { text: "OpenApi", link: "https://oai.github.io/Documentation/" }, + { text: "OpenApi", link: "https://learn.openapis.org/" }, { text: "Releases", link: "https://github.com/zircote/swagger-php/releases" }, ], diff --git a/docs/guide/index.md b/docs/guide/index.md index e8c555b81..057ac6d65 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -4,7 +4,7 @@ The idea is to add `swagger-php` [annotations](annotations.md) or [attributes](attributes.md) next to the relevant PHP code in your application. These will contain the details about your API and -`swagger-php` will convert those into machine-readable [OpenAPI documentation](https://oai.github.io/Documentation/specification.html). +`swagger-php` will convert those into machine-readable [OpenAPI documentation](https://spec.openapis.org/oas/v3.1.0.html). By adding your API documentation next to the corresponding source code (same file!) makes it easy to keep it up-to-date as all details can be modified in one place. diff --git a/docs/index.md b/docs/index.md index b86279796..c9e6ca898 100644 --- a/docs/index.md +++ b/docs/index.md @@ -49,7 +49,7 @@ Use an OpenAPI tool like [Swagger UI ](https://swagger.io/tools/swagger-ui/) to - [User Guide](guide/index.md) - [Reference](reference/index.md) -- [OpenApi Documentation](https://oai.github.io/Documentation/) +- [OpenApi Documentation](https://learn.openapis.org/) - [OpenApi Specification](https://spec.openapis.org/oas/v3.1.0.html) - [Learn by example](https://github.com/zircote/swagger-php/tree/master/Examples) - [Related projects](related-projects.md)