fix(oas): fix paths and fix schema names to match convention (#3288)
This commit is contained in:
@@ -21,7 +21,7 @@ import { validator } from "../../../../utils/validator"
|
||||
import { IsType } from "../../../../utils/validators/is-type"
|
||||
|
||||
/**
|
||||
* @oas [post] /admin/draft-orders/{id}
|
||||
* @oas [post] /draft-orders/{id}
|
||||
* operationId: PostDraftOrdersDraftOrder
|
||||
* summary: Update a Draft Order
|
||||
* description: "Updates a Draft Order."
|
||||
|
||||
@@ -13,7 +13,7 @@ import { FindParams } from "../../../../types/common"
|
||||
* - (query) fields {string} Comma separated list of fields to include in the results.
|
||||
* x-codegen:
|
||||
* method: retrieve
|
||||
* queryParams: GetPaymentCollectionsParams
|
||||
* queryParams: AdminGetPaymentCollectionsParams
|
||||
* x-codeSamples:
|
||||
* - lang: JavaScript
|
||||
* label: JS Client
|
||||
@@ -71,4 +71,4 @@ export default async (req, res) => {
|
||||
res.status(200).json({ payment_collection: paymentCollection })
|
||||
}
|
||||
|
||||
export class GetPaymentCollectionsParams extends FindParams {}
|
||||
export class AdminGetPaymentCollectionsParams extends FindParams {}
|
||||
|
||||
@@ -6,7 +6,7 @@ import middlewares, {
|
||||
} from "../../../middlewares"
|
||||
|
||||
import { PaymentCollection } from "../../../../models"
|
||||
import { GetPaymentCollectionsParams } from "./get-payment-collection"
|
||||
import { AdminGetPaymentCollectionsParams } from "./get-payment-collection"
|
||||
import { AdminUpdatePaymentCollectionsReq } from "./update-payment-collection"
|
||||
|
||||
const route = Router()
|
||||
@@ -16,7 +16,7 @@ export default (app, container) => {
|
||||
|
||||
route.get(
|
||||
"/:id",
|
||||
transformQuery(GetPaymentCollectionsParams, {
|
||||
transformQuery(AdminGetPaymentCollectionsParams, {
|
||||
defaultFields: defaultPaymentCollectionFields,
|
||||
defaultRelations: defaulPaymentCollectionRelations,
|
||||
isList: false,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { IsString } from "class-validator"
|
||||
|
||||
/**
|
||||
* @oas [delete] /uploads
|
||||
* operationId: "AdminDeleteUploads"
|
||||
* operationId: "DeleteUploads"
|
||||
* summary: "Delete an Uploaded File"
|
||||
* description: "Removes an uploaded file using the installed fileservice"
|
||||
* x-authenticated: true
|
||||
|
||||
Reference in New Issue
Block a user