Renaming to Process Groups, Process Models, and Process Instances

Rename methods to verb last. I.e., add_process_group => process_group_add
Added some comments displaying the method names when code is folded
This commit is contained in:
mike cullerton 2022-06-08 18:06:37 -04:00
parent c475c98fbc
commit 49504cf1be

View File

@ -11,11 +11,12 @@ security:
paths: paths:
/process-groups: /process-groups:
# process_groups_list
get: get:
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_groups_list operationId: spiffworkflow_backend.routes.process_api_blueprint.process_groups_list
summary: get list summary: get list
tags: tags:
- Workflow Specifications - Process Groups
responses: responses:
"200": "200":
description: An array of process groups description: An array of process groups
@ -25,11 +26,12 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/WorkflowSpecCategory" $ref: "#/components/schemas/WorkflowSpecCategory"
# process_group_add
post: post:
operationId: spiffworkflow_backend.routes.process_api_blueprint.add_process_group operationId: spiffworkflow_backend.routes.process_api_blueprint.process_group_add
summary: Add process group summary: Add process group
tags: tags:
- Workflow Specifications - Process Groups
requestBody: requestBody:
content: content:
application/json: application/json:
@ -44,11 +46,12 @@ paths:
$ref: "#/components/schemas/WorkflowSpecCategory" $ref: "#/components/schemas/WorkflowSpecCategory"
/process-groups/{process_group_id}: /process-groups/{process_group_id}:
# process_group_show
get: get:
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_group_show operationId: spiffworkflow_backend.routes.process_api_blueprint.process_group_show
summary: Returns a single process group summary: Returns a single process group
tags: tags:
- Workflow Specification Category - Process Groups
responses: responses:
"200": "200":
description: Workflow spec category. description: Workflow spec category.
@ -56,12 +59,14 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/WorkflowSpecCategory" $ref: "#/components/schemas/WorkflowSpecCategory"
/process-models: /process-models:
# process_model_add
post: post:
operationId: spiffworkflow_backend.routes.process_api_blueprint.add_process_model operationId: spiffworkflow_backend.routes.process_api_blueprint.process_model_add
summary: Creates a new workflow specification with the given parameters. summary: Creates a new workflow specification with the given parameters.
tags: tags:
- Workflow Specifications - Process Models
requestBody: requestBody:
content: content:
application/json: application/json:
@ -74,6 +79,7 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/WorkflowSpec" $ref: "#/components/schemas/WorkflowSpec"
/process-models/{process_model_id}/file: /process-models/{process_model_id}/file:
parameters: parameters:
- name: process_model_id - name: process_model_id
@ -82,20 +88,7 @@ paths:
description: The unique id of an existing workflow specification to validate. description: The unique id of an existing workflow specification to validate.
schema: schema:
type: string type: string
# get: # add_file
# operationId: spiffworkflow_backend.api.process_api_blueprint.get_files
# summary: Provide a list of workflow spec files for the given workflow_spec_id. IMPORTANT, only includes metadata, not the file content.
# tags:
# - Spec Files
# responses:
# '200':
# description: An array of file descriptions (not the file content)
# content:
# application/json:
# schema:
# type: array
# items:
# $ref: "#/components/schemas/File"
post: post:
operationId: spiffworkflow_backend.routes.process_api_blueprint.add_file operationId: spiffworkflow_backend.routes.process_api_blueprint.add_file
summary: Add a new workflow spec file summary: Add a new workflow spec file
@ -117,6 +110,21 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#components/schemas/File" $ref: "#components/schemas/File"
# get:
# operationId: spiffworkflow_backend.api.process_api_blueprint.get_files
# summary: Provide a list of workflow spec files for the given workflow_spec_id. IMPORTANT, only includes metadata, not the file content.
# tags:
# - Spec Files
# responses:
# '200':
# description: An array of file descriptions (not the file content)
# content:
# application/json:
# schema:
# type: array
# items:
# $ref: "#/components/schemas/File"
/process-models/{process_model_id}: /process-models/{process_model_id}:
parameters: parameters:
- name: process_model_id - name: process_model_id
@ -125,11 +133,12 @@ paths:
description: The unique id of an existing workflow specification. description: The unique id of an existing workflow specification.
schema: schema:
type: string type: string
# process_model_show
get: get:
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_model_show operationId: spiffworkflow_backend.routes.process_api_blueprint.process_model_show
summary: Returns a single process model summary: Returns a single process model
tags: tags:
- Workflow Specification - Process Models
responses: responses:
"200": "200":
description: Workflow spec. description: Workflow spec.
@ -137,11 +146,12 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/WorkflowSpec" $ref: "#/components/schemas/WorkflowSpec"
# process_instance_create
post: post:
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_instance_create operationId: spiffworkflow_backend.routes.process_api_blueprint.process_instance_create
summary: Creates a workflow from a workflow spec and returns the workflow summary: Creates a workflow from a workflow spec and returns the workflow
tags: tags:
- Workflow Specifications - Process Instances
responses: responses:
"201": "201":
description: Workflow generated successfully description: Workflow generated successfully
@ -149,6 +159,15 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Workflow" $ref: "#/components/schemas/Workflow"
# process_model_delete
delete:
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_model_delete
summary: Removes an existing process model
tags:
- Process Models
responses:
'204':
description: The workflow specification has been removed.
# put: # put:
# operationId: crc.api.workflow.update_workflow_specification # operationId: crc.api.workflow.update_workflow_specification
# security: # security:
@ -168,16 +187,7 @@ paths:
# application/json: # application/json:
# schema: # schema:
# $ref: "#/components/schemas/WorkflowSpec" # $ref: "#/components/schemas/WorkflowSpec"
# delete:
# operationId: crc.api.workflow.delete_workflow_specification
# security:
# - auth_admin: ['secret']
# summary: Removes an existing workflow specification
# tags:
# - Workflow Specifications
# responses:
# '204':
# description: The workflow specification has been removed.
/process-models/{process_model_id}/process-instances: /process-models/{process_model_id}/process-instances:
parameters: parameters:
- name: process_model_id - name: process_model_id
@ -198,11 +208,12 @@ paths:
description: The page number to return. Defaults to page 1. description: The page number to return. Defaults to page 1.
schema: schema:
type: integer type: integer
# process_instance_list
get: get:
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_instance_list operationId: spiffworkflow_backend.routes.process_api_blueprint.process_instance_list
summary: Returns a list of process instances for a given process model summary: Returns a list of process instances for a given process model
tags: tags:
- Workflow Specification - Process Instances
responses: responses:
"200": "200":
description: Workflow. description: Workflow.
@ -212,6 +223,7 @@ paths:
type: array type: array
items: items:
$ref: "#/components/schemas/Workflow" $ref: "#/components/schemas/Workflow"
/process-models/{process_model_id}/file/{file_name}: /process-models/{process_model_id}/file/{file_name}:
parameters: parameters:
- name: process_model_id - name: process_model_id
@ -226,6 +238,7 @@ paths:
description: The id of the spec file description: The id of the spec file
schema: schema:
type: string type: string
# get_file
get: get:
operationId: spiffworkflow_backend.routes.process_api_blueprint.get_file operationId: spiffworkflow_backend.routes.process_api_blueprint.get_file
summary: Returns metadata about the file summary: Returns metadata about the file
@ -238,6 +251,7 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#components/schemas/File" $ref: "#components/schemas/File"
# process_model_file_save
put: put:
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_model_file_save operationId: spiffworkflow_backend.routes.process_api_blueprint.process_model_file_save
summary: save the contents to the given file summary: save the contents to the given file