A component of a Object being used as the input to a CodeRun or produced as an output from a CodeRun.

Writable Fields:

object: The API URL of the Object to associate this ObjectComponent with

name: Name of the ObjectComponent, unique in the context of ObjectComponent and its Object reference

description (optional): Free text description of the ObjectComponent

issues (optional): List of Issues URLs to associate with this ObjectComponent

whole_object (optional): Specifies if this ObjectComponent refers to the whole object or not (by default this is False)

Read-only Fields:

url: Reference to the instance of the ObjectComponent, final integer is the ObjectComponent id

last_updated: Datetime that this record was last updated

updated_by: Reference to the user that updated this record

input_of: List of CodeRun that the ObjectComponent is being used as an input to

output_of: List of CodeRun that the ObjectComponent was created as an output of

GET /api/object_component/6/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "https://data.fairdatapipeline.org/api/object_component/6/?format=api",
    "last_updated": "2024-02-09T15:38:29.361043Z",
    "name": "whole_object",
    "description": null,
    "whole_object": true,
    "updated_by": "https://data.fairdatapipeline.org/api/users/2/?format=api",
    "object": "https://data.fairdatapipeline.org/api/object/7/?format=api",
    "issues": [],
    "inputs_of": [],
    "outputs_of": [
        "https://data.fairdatapipeline.org/api/code_run/1/?format=api"
    ]
}