oas: [14/14] improve admin oas (#8989)
This commit is contained in:
1 parent
090cb36543
commit
c424d397f6
6 files changed
+46
-29
No files matched your search
+8
-7
@@ -1,8 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @oas [post] /admin/stock-locations/{id}/sales-channels
|
* @oas [post] /admin/stock-locations/{id}/sales-channels
|
||||||
* operationId: PostStockLocationsIdSalesChannels
|
* operationId: PostStockLocationsIdSalesChannels
|
||||||
* summary: Add Sales Channels to Stock Location
|
* summary: Manage Sales Channels of a Stock Location
|
||||||
* description: Add a list of sales channels to a stock location.
|
* x-sidebar-summary: Manage Sales Channels
|
||||||
|
* description: Manage the sales channels in a stock location by adding or removing them.
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
* - name: id
|
* - name: id
|
||||||
@@ -62,22 +63,22 @@
|
|||||||
* application/json:
|
* application/json:
|
||||||
* schema:
|
* schema:
|
||||||
* type: object
|
* type: object
|
||||||
* description: SUMMARY
|
* description: The sales channels to add or remove.
|
||||||
* properties:
|
* properties:
|
||||||
* add:
|
* add:
|
||||||
* type: array
|
* type: array
|
||||||
* description: The stock location's add.
|
* description: The sales channels to add.
|
||||||
* items:
|
* items:
|
||||||
* type: string
|
* type: string
|
||||||
* title: add
|
* title: add
|
||||||
* description: The add's details.
|
* description: A sales channel's ID.
|
||||||
* remove:
|
* remove:
|
||||||
* type: array
|
* type: array
|
||||||
* description: The stock location's remove.
|
* description: The sales channels to remove.
|
||||||
* items:
|
* items:
|
||||||
* type: string
|
* type: string
|
||||||
* title: remove
|
* title: remove
|
||||||
* description: The remove's details.
|
* description: A sales channel's ID.
|
||||||
* x-codeSamples:
|
* x-codeSamples:
|
||||||
* - lang: Shell
|
* - lang: Shell
|
||||||
* label: cURL
|
* label: cURL
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @oas [post] /admin/tax-rates/{id}/rules
|
* @oas [post] /admin/tax-rates/{id}/rules
|
||||||
* operationId: PostTaxRatesIdRules
|
* operationId: PostTaxRatesIdRules
|
||||||
* summary: Add Rules to Tax Rate
|
* summary: Create Tax Rule for a Rate
|
||||||
* description: Add a list of rules to a tax rate.
|
* x-sidebar-summary: Create Tax Rule
|
||||||
|
* description: Create a tax rule for a rate.
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
* - name: id
|
* - name: id
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @oas [post] /admin/uploads
|
* @oas [post] /admin/uploads
|
||||||
* operationId: PostUploads
|
* operationId: PostUploads
|
||||||
* summary: Create Upload
|
* summary: Upload Files
|
||||||
* description: Create a upload.
|
* description: Upload files to the configured File Module Provider.
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters: []
|
* parameters: []
|
||||||
* security:
|
* security:
|
||||||
@@ -15,17 +15,17 @@
|
|||||||
* schema:
|
* schema:
|
||||||
* oneOf:
|
* oneOf:
|
||||||
* - type: object
|
* - type: object
|
||||||
* description: SUMMARY
|
* description: The files to upload.
|
||||||
* required:
|
* required:
|
||||||
* - files
|
* - files
|
||||||
* properties:
|
* properties:
|
||||||
* files:
|
* files:
|
||||||
* type: array
|
* type: array
|
||||||
* description: The upload's files.
|
* description: The files to upload.
|
||||||
* items:
|
* items:
|
||||||
* oneOf:
|
* oneOf:
|
||||||
* - type: object
|
* - type: object
|
||||||
* description: The file's files.
|
* description: A file's details.
|
||||||
* required:
|
* required:
|
||||||
* - name
|
* - name
|
||||||
* - content
|
* - content
|
||||||
@@ -37,10 +37,10 @@
|
|||||||
* content:
|
* content:
|
||||||
* type: string
|
* type: string
|
||||||
* title: content
|
* title: content
|
||||||
* description: The file's content.
|
* description: The file's base64 content.
|
||||||
* - $ref: "#/components/schemas/File"
|
* - $ref: "#/components/schemas/File"
|
||||||
* - $ref: "#/components/schemas/FileList"
|
* - $ref: "#/components/schemas/FileList"
|
||||||
* description: SUMMARY
|
* description: The files to upload.
|
||||||
* x-codeSamples:
|
* x-codeSamples:
|
||||||
* - lang: Shell
|
* - lang: Shell
|
||||||
* label: cURL
|
* label: cURL
|
||||||
|
|||||||
+18
-5
@@ -1,13 +1,13 @@
|
|||||||
/**
|
/**
|
||||||
* @oas [post] /admin/workflows-executions/{workflow_id}/run
|
* @oas [post] /admin/workflows-executions/{workflow_id}/run
|
||||||
* operationId: PostWorkflowsExecutionsWorkflow_idRun
|
* operationId: PostWorkflowsExecutionsWorkflow_idRun
|
||||||
* summary: Add Runs to Workflows Execution
|
* summary: Execute a Workflow
|
||||||
* description: Add a list of runs to a workflows execution.
|
* description: Execute a workflow by its ID.
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
* - name: workflow_id
|
* - name: workflow_id
|
||||||
* in: path
|
* in: path
|
||||||
* description: The workflows execution's workflow id.
|
* description: The workflow's ID.
|
||||||
* required: true
|
* required: true
|
||||||
* schema:
|
* schema:
|
||||||
* type: string
|
* type: string
|
||||||
@@ -35,11 +35,24 @@
|
|||||||
* application/json:
|
* application/json:
|
||||||
* schema:
|
* schema:
|
||||||
* type: object
|
* type: object
|
||||||
* description: SUMMARY
|
* description: The execution's details.
|
||||||
* required:
|
* required:
|
||||||
* - acknowledgement
|
* - acknowledgement
|
||||||
* properties:
|
* properties:
|
||||||
* acknowledgement: {}
|
* acknowledgement:
|
||||||
|
* type: object
|
||||||
|
* description: The workflow's details
|
||||||
|
* required:
|
||||||
|
* - workflowId
|
||||||
|
* - transactionId
|
||||||
|
* properties:
|
||||||
|
* workflowId:
|
||||||
|
* type: string
|
||||||
|
* description: The ID of the executed workflow.
|
||||||
|
* name: workflowId
|
||||||
|
* transactionId:
|
||||||
|
* type: string
|
||||||
|
* description: The ID of the workflow exection's transaction. Use this later to track the workflow execution's progress or succeed / fail its steps.
|
||||||
* "400":
|
* "400":
|
||||||
* $ref: "#/components/responses/400_error"
|
* $ref: "#/components/responses/400_error"
|
||||||
* "401":
|
* "401":
|
||||||
|
|||||||
+5
-4
@@ -1,8 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @oas [post] /admin/workflows-executions/{workflow_id}/steps/failure
|
* @oas [post] /admin/workflows-executions/{workflow_id}/steps/failure
|
||||||
* operationId: PostWorkflowsExecutionsWorkflow_idStepsFailure
|
* operationId: PostWorkflowsExecutionsWorkflow_idStepsFailure
|
||||||
* summary: Add Failures to Workflows Execution
|
* summary: Fail a Step in a Workflow's Execution
|
||||||
* description: Add a list of failures to a workflows execution.
|
* x-sidebar-summary: Fail a Step
|
||||||
|
* description: Set the status of a step in a workflow's execution as failed. This is useful for long-running workflows.
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
* - name: workflow_id
|
* - name: workflow_id
|
||||||
@@ -40,14 +41,14 @@
|
|||||||
* application/json:
|
* application/json:
|
||||||
* schema:
|
* schema:
|
||||||
* type: object
|
* type: object
|
||||||
* description: SUMMARY
|
* description: The details of failing the workflow step.
|
||||||
* required:
|
* required:
|
||||||
* - success
|
* - success
|
||||||
* properties:
|
* properties:
|
||||||
* success:
|
* success:
|
||||||
* type: boolean
|
* type: boolean
|
||||||
* title: success
|
* title: success
|
||||||
* description: The workflows execution's success.
|
* description: Whether the workflow step has failed successfully.
|
||||||
* "400":
|
* "400":
|
||||||
* $ref: "#/components/responses/400_error"
|
* $ref: "#/components/responses/400_error"
|
||||||
* "401":
|
* "401":
|
||||||
|
|||||||
+5
-4
@@ -1,8 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @oas [post] /admin/workflows-executions/{workflow_id}/steps/success
|
* @oas [post] /admin/workflows-executions/{workflow_id}/steps/success
|
||||||
* operationId: PostWorkflowsExecutionsWorkflow_idStepsSuccess
|
* operationId: PostWorkflowsExecutionsWorkflow_idStepsSuccess
|
||||||
* summary: Add Successes to Workflows Execution
|
* summary: Succeed a Step in a Workflow's Execution
|
||||||
* description: Add a list of successes to a workflows execution.
|
* x-sidebar-summary: Succed a Step
|
||||||
|
* description: Set the status of a step in a workflow's execution as successful. This is useful for long-running workflows.
|
||||||
* x-authenticated: true
|
* x-authenticated: true
|
||||||
* parameters:
|
* parameters:
|
||||||
* - name: workflow_id
|
* - name: workflow_id
|
||||||
@@ -40,14 +41,14 @@
|
|||||||
* application/json:
|
* application/json:
|
||||||
* schema:
|
* schema:
|
||||||
* type: object
|
* type: object
|
||||||
* description: SUMMARY
|
* description: The details of succeeding the workflow step.
|
||||||
* required:
|
* required:
|
||||||
* - success
|
* - success
|
||||||
* properties:
|
* properties:
|
||||||
* success:
|
* success:
|
||||||
* type: boolean
|
* type: boolean
|
||||||
* title: success
|
* title: success
|
||||||
* description: The workflows execution's success.
|
* description: Whether the workflow step was succeeded.
|
||||||
* "400":
|
* "400":
|
||||||
* $ref: "#/components/responses/400_error"
|
* $ref: "#/components/responses/400_error"
|
||||||
* "401":
|
* "401":
|
||||||
|
|||||||
Reference in new issue
Block a user