Workin service
This commit is contained in:
@@ -10,7 +10,7 @@ info:
|
||||
license:
|
||||
name: Apache 2.0
|
||||
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
basePath: /oc
|
||||
basePath: /oc/
|
||||
paths:
|
||||
/version/:
|
||||
get:
|
||||
@@ -24,6 +24,16 @@ paths:
|
||||
"200":
|
||||
description: ""
|
||||
/workflow/:
|
||||
get:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
find workflow by workflowid
|
||||
<br>
|
||||
operationId: WorkflowController.GetAll
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
post:
|
||||
tags:
|
||||
- workflow
|
||||
@@ -33,19 +43,17 @@ paths:
|
||||
operationId: WorkflowController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: body
|
||||
description: The workflow content
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} models.workflow.Id'
|
||||
"403":
|
||||
description: body is empty
|
||||
/workflow/{workflowId}:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
/workflow/{id}:
|
||||
get:
|
||||
tags:
|
||||
- workflow
|
||||
@@ -55,15 +63,37 @@ paths:
|
||||
operationId: WorkflowController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: workflowId
|
||||
name: id
|
||||
description: the workflowid you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
"403":
|
||||
description: :workflowId is empty
|
||||
put:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
create workflows
|
||||
<br>
|
||||
operationId: WorkflowController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the workflowid you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The workflow content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
delete:
|
||||
tags:
|
||||
- workflow
|
||||
@@ -73,35 +103,123 @@ paths:
|
||||
operationId: WorkflowController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: workflowId
|
||||
name: id
|
||||
description: The workflowId you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} delete success!'
|
||||
"403":
|
||||
description: workflowId is empty
|
||||
/workflow/find/{query}:
|
||||
get:
|
||||
/workflow/publish/{id}:
|
||||
post:
|
||||
tags:
|
||||
- workflow
|
||||
description: |-
|
||||
find workflows with query
|
||||
create workflows
|
||||
<br>
|
||||
operationId: WorkflowController.Find
|
||||
operationId: WorkflowController.Publish
|
||||
parameters:
|
||||
- in: path
|
||||
name: query
|
||||
description: the keywords you need
|
||||
name: id
|
||||
description: the workflowid you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflows} []models.workflow'
|
||||
"403":
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
/workflow/resource/:
|
||||
get:
|
||||
tags:
|
||||
- workflow/resource
|
||||
description: |-
|
||||
find workflow by workflowid
|
||||
<br>
|
||||
operationId: WorkflowResourceController.GetAll
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
post:
|
||||
tags:
|
||||
- workflow/resource
|
||||
description: |-
|
||||
create workflows
|
||||
<br>
|
||||
operationId: WorkflowResourceController.Create
|
||||
parameters:
|
||||
- in: body
|
||||
name: data
|
||||
description: body for data content (Json format)
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/json'
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
/workflow/resource/{id}:
|
||||
get:
|
||||
tags:
|
||||
- workflow/resource
|
||||
description: |-
|
||||
find workflows
|
||||
<br>
|
||||
operationId: WorkflowResourceController.Get
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the workflowid you want to get
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{workflow} models.workflow'
|
||||
put:
|
||||
tags:
|
||||
- workflow/resource
|
||||
description: |-
|
||||
create workflows
|
||||
<br>
|
||||
operationId: WorkflowResourceController.Update
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: the workflowid you want to get
|
||||
required: true
|
||||
type: string
|
||||
- in: body
|
||||
name: body
|
||||
description: The workflow content
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/models.workflow'
|
||||
delete:
|
||||
tags:
|
||||
- workflow/resource
|
||||
description: |-
|
||||
delete the workflow
|
||||
<br>
|
||||
operationId: WorkflowResourceController.Delete
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
description: The workflowId you want to delete
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} delete success!'
|
||||
definitions:
|
||||
json:
|
||||
title: json
|
||||
type: object
|
||||
models.workflow:
|
||||
title: workflow
|
||||
type: object
|
||||
@@ -109,6 +227,9 @@ tags:
|
||||
- name: workflow
|
||||
description: |
|
||||
Operations about workflow
|
||||
- name: workflow/resource
|
||||
description: |
|
||||
Operations about workflow
|
||||
- name: version
|
||||
description: |
|
||||
VersionController operations for Version
|
||||
|
||||
Reference in New Issue
Block a user