A code run along with its associated, code repo, configuration, input and outputs.

Writable Fields:

run_date: datetime of the CodeRun

description (optional): Free text description of the CodeRun

code_repo (optional): Reference to the Object associated with the StorageLocation where the code repository is stored

model_config: Reference to the Object for the YAML configuration used for the CodeRun

submission_script: Reference to the Object for the submission script used for the CodeRun

inputs: List of ObjectComponent that the CodeRun used as inputs

outputs: List of ObjectComponent that the CodeRun produced as outputs

uuid (optional): UUID of the CodeRun. If not specified a UUID is generated automatically.

Read-only Fields:

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

last_updated: Datetime that this record was last updated

updated_by: Reference to the user that updated this record

ro_crate: The RO Crate containing this CodeRun plus any available input and output files

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

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "https://data.fairdatapipeline.org/api/code_run/1/?format=api",
            "ro_crate": "https://data.fairdatapipeline.org/api/ro-crate/code-run/1/",
            "uuid": "175972f7-b404-4122-a571-c86bd4656b38",
            "last_updated": "2024-02-09T15:38:35.754175Z",
            "run_date": "2024-02-09T15:35:42.655339Z",
            "description": "SEIRS Model python",
            "updated_by": "https://data.fairdatapipeline.org/api/users/2/?format=api",
            "code_repo": "https://data.fairdatapipeline.org/api/object/4/?format=api",
            "model_config": "https://data.fairdatapipeline.org/api/object/3/?format=api",
            "submission_script": "https://data.fairdatapipeline.org/api/object/5/?format=api",
            "inputs": [
                "https://data.fairdatapipeline.org/api/object_component/1/?format=api"
            ],
            "outputs": [
                "https://data.fairdatapipeline.org/api/object_component/5/?format=api",
                "https://data.fairdatapipeline.org/api/object_component/6/?format=api"
            ]
        }
    ]
}