docs: add loyalty plugin routes to OAS (#12811)
* generated OAS * remove unused schemas * generated specs * add cloud badge for routes * add to loyalty plugin page * allow clicking the tooltip
This commit is contained in:
@@ -83,7 +83,7 @@ class OasGenerator extends AbstractGenerator {
|
||||
isFileIncluded(fileName: string): boolean {
|
||||
return (
|
||||
super.isFileIncluded(fileName) &&
|
||||
minimatch(getBasePath(fileName), "packages/medusa/**/api**/**", {
|
||||
minimatch(getBasePath(fileName), "**/api**/**", {
|
||||
matchBase: true,
|
||||
})
|
||||
)
|
||||
|
||||
@@ -121,6 +121,14 @@ class OasKindGenerator extends FunctionKindGenerator {
|
||||
requiresAuthentication: true,
|
||||
allowedAuthTypes: ["cookie_auth", "jwt_token"],
|
||||
},
|
||||
{
|
||||
startsWith: "store/gift-card",
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
{
|
||||
startsWith: "store/store-credit-accounts",
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
]
|
||||
readonly RESPONSE_TYPE_NAMES = ["MedusaResponse"]
|
||||
readonly FIELD_QUERY_PARAMS = ["fields", "expand"]
|
||||
|
||||
Reference in New Issue
Block a user