Class: V1::WorkflowResource

Inherits:
JSONAPI::Resource
  • Object
show all
Defined in:
app/resources/v1/workflow_resource.rb

Overview

Note:

Access this resource via the /v1/workflows endpoint.

Provides a JSON:API representation of Workflow.

For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for the service implementation of the JSON:API standard.

Primary Relationships: * workflow_steps { V1::WorkflowStep }

Examples:

curl -X GET http://localhost:3100/v1/workflows/1
curl -X GET http://localhost:3100/v1/workflows/
curl -X GET "http://localhost:3100/v1/workflows?include=workflow_steps"

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

Returns the name of the workflow.

Returns:

  • (String)

    the name of the workflow



24
# File 'app/resources/v1/workflow_resource.rb', line 24

attributes :name, :pipeline

#pipelineString

Returns the pipeline of the workflow.

Returns:

  • (String)

    the pipeline of the workflow



24
# File 'app/resources/v1/workflow_resource.rb', line 24

attributes :name, :pipeline