feat(oas): include /admin and /store in paths URLs (#3314)

## What

Include `/admin` and `/store` in OAS paths URLs

## Why

Allow for generating a combined OAS that include routes for both "admin" and "store" endpoint.

Fix potential issues with code generator where routes are not prefixed with "admin" and "store" leading to 404 errors.

## Test

* Run `yarn build`
* Run `yarn openapi:generate`
* Run `yarn redocly preview-docs docs/api/admin/openapi.yaml --config=./docs-util/redocly/config.yaml`
* Expect paths to be prefixed with /admin.
* Run `yarn redocly preview-docs docs/api/store/openapi.yaml --config=./docs-util/redocly/config.yaml`
* Expect paths to be prefixed with /store.
This commit is contained in:
Patrick authored and GitHub committed 2023-02-22 15:43:41 +00:00
1 parent 68496ffe60
commit 287c829c9c
318 files changed
+329 -324

No files matched your search

+1 -1
View File
@@ -292,7 +292,7 @@ tags:
- name: User
description: User endpoints that allow handling users in Medusa.
servers:
- url: https://api.medusa-commerce.com/admin
- url: https://api.medusa-commerce.com
paths: { }
components:
responses:
+1 -1
View File
@@ -237,7 +237,7 @@ tags:
- name: Swap
description: Swap endpoints that allow handling swaps in Medusa.
servers:
- url: https://api.medusa-commerce.com/store
- url: https://api.medusa-commerce.com
paths: { }
components:
responses: