TES Create Run Component
Beta
0.1.1
<ecc-client-ga4gh-tes-create-run/>
ECCClientGa4ghTesCreateRun
Overview
The TES Create Run component is used to create task runs using the Task Execution Service (TES) API. This component provides a user-friendly interface for submitting new tasks to a TES-compliant service.
For more details, refer to the TES API POST endpoint specification (opens in a new tab).
Preview
Examples
Basic Usage
ECCClientGa4ghTesCreateRun.tsx
import React from 'react';
import ECCClientGa4ghTesCreateRun from '@elixir-cloud/tes/dist/react/create-run/index';
export default function CreateRun() {
return <ECCClientGa4ghTesCreateRun />;
}
Properties
Property | Required | Default | Type | Description |
---|---|---|---|---|
baseURL | false | https://protes.rahtiapp.fi/ga4gh/tes/v1 | String | Base URL for the TES API |
baseURL
The baseURL
property specifies the base URL for the TES API. The component will append /tasks
to this URL to form the complete endpoint for creating a task run.
Usage Notes
- API Endpoint: The component uses the
baseURL
+/tasks
as the endpoint for creating a new task run via a POST request. - Data Validation: While the component includes client-side data validation, it's important to ensure that the data you submit conforms to the TES API specifications.
- Error Handling: The component will display error messages if the task creation fails. Check the console for more detailed error information.