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/?format=api
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 6,
    "next": null,
    "previous": null,
    "results": [
        {
            "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"
            ]
        },
        {
            "url": "https://data.fairdatapipeline.org/api/object_component/5/?format=api",
            "last_updated": "2024-02-09T15:38:20.759508Z",
            "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/6/?format=api",
            "issues": [],
            "inputs_of": [],
            "outputs_of": [
                "https://data.fairdatapipeline.org/api/code_run/1/?format=api"
            ]
        },
        {
            "url": "https://data.fairdatapipeline.org/api/object_component/4/?format=api",
            "last_updated": "2024-02-09T15:38:12.085536Z",
            "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/5/?format=api",
            "issues": [],
            "inputs_of": [],
            "outputs_of": []
        },
        {
            "url": "https://data.fairdatapipeline.org/api/object_component/3/?format=api",
            "last_updated": "2024-02-09T15:38:08.011235Z",
            "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/4/?format=api",
            "issues": [],
            "inputs_of": [],
            "outputs_of": []
        },
        {
            "url": "https://data.fairdatapipeline.org/api/object_component/2/?format=api",
            "last_updated": "2024-02-09T15:36:48.701777Z",
            "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/3/?format=api",
            "issues": [],
            "inputs_of": [],
            "outputs_of": []
        },
        {
            "url": "https://data.fairdatapipeline.org/api/object_component/1/?format=api",
            "last_updated": "2024-02-09T15:36:29.512452Z",
            "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/1/?format=api",
            "issues": [],
            "inputs_of": [
                "https://data.fairdatapipeline.org/api/code_run/1/?format=api"
            ],
            "outputs_of": []
        }
    ]
}