TF2 API (1.0.0)

Download OpenAPI specification:Download

TF2 QAI-Testbed API.

Login

ログイン情報入力

アカウントID、パスワードを入力し、ユーザ認証を行う。

Request Body schema: application/json

ログインユーザのアカウントIDとパスワードを設定

AccountId
required
string

ログインに使用するアカウントID

Password
required
string

ログインに使用するパスワード

Responses

Request samples

Content type
application/json
{
  • "AccountId": "user",
  • "Password": "user_pass"
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "UserInfo": {
    }
}

mlComponents

機械学習コンポーネント一覧表示.

ログインユーザの組織に紐付く機械学習コンポーネント一覧情報を取得し、機械学習コンポーネント一覧画面に遷移し表示

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID(ログイン情報入力でのレスポンスから取得)

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "mlComponents": [
    ]
}

機械学習コンポーネント追加.

機械学習コンポーネントを追加する

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

Request Body schema: application/json

機械学習コンポーネント追加情報

Name
required
string
Description
required
string
ProblemDomain
required
string

機械学習コンポーネントの対象とする問題領域を記載する。

MLFrameworkId
required
integer

機械学習フレームワークのIDを記載する
名称とIDはGET /mlFrameworksで取得する。

GuidelineId
required
integer

関連するガイドラインIDを記載する。

ScopeId
required
integer

関連するスコープIDを記載する。

GuidelineReason
string

ガイドラインを選択した理由を記載する。

ScopeReason
string

スコープを選択した理由を記載する。

Responses

Request samples

Content type
application/json
{
  • "Name": "Fashion Classifier",
  • "Description": "Fashion image classification",
  • "ProblemDomain": "ImageClassification",
  • "MLFrameworkId": 1,
  • "GuidelineId": 1,
  • "ScopeId": 1,
  • "GuidelineReason": "This guideline fits the project.",
  • "ScopeReason": "This scope fits the project."
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "MLComponentId": 4
}

機械学習コンポーネント追加(scrfトークンありで使用).

機械学習コンポーネントを追加する(scrfトークンありで使用)

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

Request Body schema: application/json

機械学習コンポーネント追加情報

Name
required
string
Description
required
string
ProblemDomain
required
string

機械学習コンポーネントの対象とする問題領域を記載する。

MLFrameworkId
required
integer

機械学習フレームワークのIDを記載する
名称とIDはGET /mlFrameworksで取得する。

GuidelineId
required
integer

関連するガイドラインIDを記載する。

ScopeId
required
integer

関連するスコープIDを記載する。

GuidelineReason
string

ガイドラインを選択した理由を記載する。

ScopeReason
string

スコープを選択した理由を記載する。

Responses

Request samples

Content type
application/json
{
  • "Name": "Fashion Classifier",
  • "Description": "Fashion image classification",
  • "ProblemDomain": "ImageClassification",
  • "MLFrameworkId": 1,
  • "GuidelineId": 1,
  • "ScopeId": 1,
  • "GuidelineReason": "This guideline fits the project.",
  • "ScopeReason": "This scope fits the project."
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "MLComponentId": 4
}

機械学習コンポーネント編集.

機械学習コンポーネントを編集する。
ガイドラインを使用中の場合(テストディスクリプション作成済み)、ガイドラインは変更できない。

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json
Name
string
Description
string
ProblemDomain
string
MLFrameworkId
integer
GuidelineId
integer
ScopeId
integer

関連するスコープIDを記載する。

GuidelineReason
string

ガイドラインを選択した理由を記載する。

ScopeReason
string

スコープを選択した理由を記載する。

Responses

Request samples

Content type
application/json
{
  • "Name": "Fashion Classifier",
  • "Description": "Fashion image classification",
  • "ProblemDomain": "ImageClassification",
  • "MLFrameworkId": 1,
  • "GuidelineId": 1,
  • "ScopeId": 1,
  • "GuidelineReason": "This guideline fits the project.",
  • "ScopeReason": "This scope fits the project."
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "MLComponentId": 4
}

機械学習コンポーネント削除.

機械学習コンポーネント一覧表示から、選択した機械学習コンポーネントを削除する。 削除する機械学習コンポーネントに関連するインベントリ情報とテストディスクリプション情報を削除する。

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
string

機械学習コンポーネントId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

機械学習コンポーネントにレポート見解を登録.

機械学習コンポーネントにレポート見解を登録する。

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json
ReportOpinion
string

Responses

Request samples

Content type
application/json
{
  • "ReportOpinion": "All TDs meet the requirements"
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "MLComponentId": 4
}

MLFrameworks

機械学習フレームワーク一覧取得.

機械学習フレームワークの一覧を取得する

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "MLFrameworks": [
    ]
}

Inventories

インベントリ一覧取得.

選択した機械学習コンポーネントとログインユーザの組織に紐付くインベントリの一覧を取得

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Inventories": [
    ]
}

インベントリ追加.

選択した機械学習コンポーネントとログインユーザの組織に紐付くインベントリを追加する

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json

インベントリ追加情報

Name
required
string
TypeId
required
integer

dataTypeのIdを指定する。

FilePath
required
string

インベントリのアドレスを指定する。
TypeがWINDOWS_FILEの場合、以下の条件に当てはまるFilePathのみを許容する。
・アルファベッドから始まる
・長さが259バイト以下である
TypeがUNIX_FILE_SYSTEMの場合、以下の条件に当てはまるFilePathのみを許容する。
・/から始まる
・長さが1023バイト以下である
・一つの要素(ディレクトリ名・ファイル名)が255バイト以下である
この条件に当てはまらないFilePathが指定された場合、422を返却する。

Destination
string
Formats
required
Array of strings

インベントリのフォーマットをN個設定する フォーマット一覧取得APIで取得された名前以外を指定した場合、本API内部でフォーマット追加処理をする

Responses

Request samples

Content type
application/json
{
  • "Name": "TestDataset_0818",
  • "TypeId": 1,
  • "FilePath": "/mnt/xxx/1",
  • "Destination": "0818用のデータセット",
  • "Formats": [
    ]
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

インベントリ追加(scrfトークンありで使用).

選択した機械学習コンポーネントとログインユーザの組織に紐付くインベントリを追加する(scrfトークンありで使用).

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json

インベントリ追加情報

Name
required
string
TypeId
required
integer

dataTypeのIdを指定する。

FilePath
required
string

インベントリのアドレスを指定する。
TypeがWINDOWS_FILEの場合、以下の条件に当てはまるFilePathのみを許容する。
・アルファベッドから始まる
・長さが259バイト以下である
TypeがUNIX_FILE_SYSTEMの場合、以下の条件に当てはまるFilePathのみを許容する。
・/から始まる
・長さが1023バイト以下である
・一つの要素(ディレクトリ名・ファイル名)が255バイト以下である
この条件に当てはまらないFilePathが指定された場合、422を返却する。

Destination
string
Formats
required
Array of strings

インベントリのフォーマットをN個設定する フォーマット一覧取得APIで取得された名前以外を指定した場合、本API内部でフォーマット追加処理をする

Responses

Request samples

Content type
application/json
{
  • "Name": "TestDataset_0818",
  • "TypeId": 1,
  • "FilePath": "/mnt/xxx/1",
  • "Destination": "0818用のデータセット",
  • "Formats": [
    ]
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

インベントリ編集.

選択した機械学習コンポーネントとログインユーザの組織に紐付く対象のインベントリIDを指定し、そのインベントリ情報を編集する。

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

inventoryId
required
integer

インベントリId

Request Body schema: application/json

インベントリ追加情報

Name
required
string
TypeId
required
integer

dataTypeのIdを指定する。

FilePath
required
string

インベントリのアドレスを指定する。
TypeがWINDOWS_FILEの場合、以下の条件に当てはまるFilePathのみを許容する。
・アルファベッドから始まる
・長さが259バイト以下である
TypeがUNIX_FILE_SYSTEMの場合、以下の条件に当てはまるFilePathのみを許容する。
・/から始まる
・長さが1023バイト以下である
・一つの要素(ディレクトリ名・ファイル名)が255バイト以下である
この条件に当てはまらないFilePathが指定された場合、422を返却する。

Destination
string
Formats
required
Array of strings

インベントリのフォーマットをN個設定する フォーマット一覧取得APIで取得された名前以外を指定した場合、本API内部でフォーマット追加処理をする

Responses

Request samples

Content type
application/json
{
  • "Name": "TestDataset_0818",
  • "TypeId": 1,
  • "FilePath": "/mnt/xxx/1",
  • "Destination": "0818用のデータセット",
  • "Formats": [
    ]
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

インベントリ削除.

選択した機械学習コンポーネントとログインユーザの組織に紐付く対象のインベントリIDを指定し、そのインベントリ情報を削除する

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

inventoryId
required
integer

インベントリId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

Format

フォーマット一覧取得.

フォーマットの一覧を取得する

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Tags": [
    ]
}

Data Type

データタイプ一覧取得.

データタイプの一覧を取得する

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "DataTypes": [
    ]
}

Tag

(使用機能なし)タグ一覧取得.

タグの一覧を取得する

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Tags": [
    ]
}

Quality_Measurement

測定基準一覧取得.

測定基準の一覧を取得する

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "QualityMeasurements": [
    ]
}

(使用禁止→AIT追加APIで実施)測定基準追加.

  • 測定基準を追加する。
  • 測定基準はプリミティブな一つのメトリクス(指標値)をもつ。
  • この測定基準設計者が、どういった基準で算出するかをDescription項目で明確化しなければならない。
  • 名称とバージョンの組み合わせが既に存在する場合、400を返却する。
  • 存在しない内部品質特性IDを指定した場合、400を返却する。
Request Body schema: application/json

測定基準追加情報

Name
required
string
Version
required
string
Description
required
string
QualityDimensionId
required
integer
required
object

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "QualityMeasurementId": 100
}

関係演算子取得.

関係演算子の一覧を取得する

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "RelationalOperators": [
    ]
}

AIT

インストールしたtestRunner(AIT)AITの一覧取得.

インストールしたtestRunner(AIT)の一覧を取得する.
MlComponentとは関連しない.
0件もありえる.

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "AITDetail": {
    }
}

指定されたTestRunner(AIT)をアンインストールする.

指定されたTestRunner(AIT)をアンインストールする.
全てのMlComponentのTestDescriotionで使用中のTestRunner(AIT)はアンインストールしない.
アンインストールの処理は、delete_flagをtrueにする.

Authorizations:
cookieAuth
path Parameters
testRunnerId
required
integer

TestRunner(AIT)のId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

指定されたtestRunner(AIT)を使用しているTestDescriptionIDとMlComponentIDを取得する.

指定されたtestRunner(AIT)を使用しているTestDescriptionIDとMlComponentIDを取得する.
全てのMlComponentのTestDescriptionが対象.
0件もありえる.

path Parameters
id
required
integer

TestRunner(AIT)のId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "UsingTD": [
    ]
}

AIT_Local

ローカルレジストリにインストールしたAITの一覧取得.

ローカルレジストリにインストールしたAITの一覧を取得する.
MlComponentとは関連しない.
0件もありえる.

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "AITLocalList": [
    ]
}

Test descriotions

テスト実行.

選択した機械学習コンポーネントとログインユーザの組織に紐付くテスト機能を実行する。※非同期処理

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json

非同期処理コマンド

Command
required
string
TestDescriptionIds
required
Array of integers
  • コマンドの反映先となるtestDescriptionIDを指定する。
  • 複数のtestDescriptionIDを指定可能とする。
  • すべてのtestDescriptionに対して実施したい場合は、空を指定する。

Responses

Request samples

Content type
application/json
{
  • "Command": "AsyncStart",
  • "TestDescriptionIds": [
    ]
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Job": {
    }
}

テスト実行(scrfトークンありで使用).

選択した機械学習コンポーネントとログインユーザの組織に紐付くテスト機能を実行する。※非同期処理(scrfトークンありで使用)

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json

非同期処理コマンド

Command
required
string
TestDescriptionIds
required
Array of integers
  • コマンドの反映先となるtestDescriptionIDを指定する。
  • 複数のtestDescriptionIDを指定可能とする。
  • すべてのtestDescriptionに対して実施したい場合は、空を指定する。

Responses

Request samples

Content type
application/json
{
  • "Command": "AsyncStart",
  • "TestDescriptionIds": [
    ]
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Job": {
    }
}

テスト実行ジョブのステータスと結果取得.

実行指示した各job(test description)のステータス・結果を取得する

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Job": {
    },
  • "Runs": [
    ]
}

テストディスクリプション一覧表示.

選択した機械学習コンポーネントとログインユーザの組織に紐付くテストディスクリプション一覧を取得し、テストディスクリプション一覧を表示

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Test": {
    }
}

テストディスクリプション追加

選択した機械学習コンポーネントとログインユーザの組織に紐付くテストディスクリプション詳細情報を追加する

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json

テストディスクリプション詳細追加情報

Name
required
string
QualityDimensionID
required
integer

内部品質プロパティIDを指定する。
存在しない内部品質プロパティIDを指定した場合、422を返却する。

ParentID
integer

親(コピー元)のTestDescriptionIDを指定する。
コピーではなく、新規作成の場合は指定しない。
存在しないTestDescriptionIDを指定した場合、422を返却する。

required
object
required
Array of objects
required
object

Responses

Request samples

Content type
application/json
{
  • "Name": "Neuron Coverage",
  • "ParentID": 10,
  • "QualityDimensionID": 1,
  • "QualityMeasurements": {
    },
  • "TargetInventories": [
    ],
  • "TestRunner": {
    }
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

テストディスクリプション追加(scrfトークンありで使用)

選択した機械学習コンポーネントとログインユーザの組織に紐付くテストディスクリプション詳細情報を追加する.
(scrfトークンありで使用)

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json

テストディスクリプション詳細追加情報

Name
required
string
QualityDimensionID
required
integer

内部品質プロパティIDを指定する。
存在しない内部品質プロパティIDを指定した場合、422を返却する。

ParentID
integer

親(コピー元)のTestDescriptionIDを指定する。
コピーではなく、新規作成の場合は指定しない。
存在しないTestDescriptionIDを指定した場合、422を返却する。

required
object
required
Array of objects
required
object

Responses

Request samples

Content type
application/json
{
  • "Name": "Neuron Coverage",
  • "ParentID": 10,
  • "QualityDimensionID": 1,
  • "QualityMeasurements": {
    },
  • "TargetInventories": [
    ],
  • "TestRunner": {
    }
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

テストディスクリプション詳細表示.

選択した機械学習コンポーネントとログインユーザの組織に紐付く対象のテストディスクリプションIDを指定し、そのテストディスクリプションの詳細情報を取得

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

testTestDescriptionsId
required
integer

テストディスクリプションId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "TestDescriptionDetail": {
    }
}

テストディスクリプション詳細削除.

選択した機械学習コンポーネントとログインユーザの組織に紐付く対象のテストディスクリプションIDを指定し、そのテストディスクリプションの詳細情報を削除する 指定したテストディスクリプションに子供がいる場合、子供も再帰的に削除する

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

testTestDescriptionsId
required
integer

テストディスクリプションId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

テストディスクリプション詳細編集.

選択した機械学習コンポーネントとログインユーザの組織に紐付く対象のテストディスクリプションIDを指定し、そのテストディスクリプションの詳細情報を編集する。ただし、更新対象がテスト実行済み、かつ結果が成功の場合は編集不可とする。

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

testTestDescriptionsId
required
integer

テストディスクリプションId

Request Body schema: application/json

テストディスクリプション詳細追加情報

Name
required
string
QualityDimensionID
required
integer

内部品質プロパティIDを指定する。
存在しない内部品質プロパティIDを指定した場合、422を返却する。

required
object
required
Array of objects
required
object

Responses

Request samples

Content type
application/json
{
  • "Name": "Neuron Coverage",
  • "QualityDimensionID": 1,
  • "QualityMeasurements": {
    },
  • "TargetInventories": [
    ],
  • "TestRunner": {
    }
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

お気に入り設定

指定したテストディスクリプションをお気に入りに設定する

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

testTestDescriptionsId
required
integer

テストディスクリプションId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

お気に入り設定解除

指定したテストディスクリプションをお気に入りから外す

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

testTestDescriptionsId
required
integer

テストディスクリプションId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

祖先テストディスクリプション一覧表示.

該当するテストディスクリプションの祖先リストを昇順(親→子)の順序で返却する。 返却するリストの最後尾には該当テストディスクリプションが付加される。 そのため、親のいないテストディスクリプションを指定した場合、 該当テストディスクリプション1つだけが返却される。

Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

testTestDescriptionsId
required
integer

テストディスクリプションId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "TestDescriptions": [
    ]
}

レポート生成器に対してコマンドを発行する.

発行コマンドは以下の通り。

  • パラメータ設定
  • レポート生成
Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json

コマンド

Command
required
string
  • SetParam : パラメータ設定
  • Generate : レポート生成
Destination
required
Array of strings
  • コマンドの反映先となるtestDescriptionIDを指定する。
  • 複数のtestDescriptionIDを指定可能とする。
  • すべてのtestDescriptionに対して実施したい場合は、空を指定する。
object
  • SetParam
    • Opinion : 見解設定
    • Graphs : グラフごとのレポート表示設定
  • Generate : レポート生成
    • TargetReportTemplateId : レポート出力時のテンプレートID
    • (TargetReportTemplateIdが指定されなかった場合、品質特性の値からダミーのテンプレートを作成し出力する)

Responses

Request samples

Content type
application/json
Example
{
  • "Command": "SetParam",
  • "Destination": [
    ],
  • "Params": {
    }
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "OutParams": []
}

レポート生成器に対してコマンドを発行する.(scrfトークンありで使用)

発行コマンドは以下の通り。

  • パラメータ設定
  • レポート生成 (scrfトークンありで使用)
Authorizations:
cookieAuth
path Parameters
OrganizerId
required
string

組織ID

mlComponentsId
required
integer

機械学習コンポーネントId

Request Body schema: application/json

コマンド

Command
required
string
  • SetParam : パラメータ設定
  • Generate : レポート生成
Destination
required
Array of strings
  • コマンドの反映先となるtestDescriptionIDを指定する。
  • 複数のtestDescriptionIDを指定可能とする。
  • すべてのtestDescriptionに対して実施したい場合は、空を指定する。
object
  • SetParam
    • Opinion : 見解設定
    • Graphs : グラフごとのレポート表示設定
  • Generate : レポート生成
    • TargetReportTemplateId : レポート出力時のテンプレートID
    • (TargetReportTemplateIdが指定されなかった場合、品質特性の値からダミーのテンプレートを作成し出力する)

Responses

Request samples

Content type
application/json
Example
{
  • "Command": "SetParam",
  • "Destination": [
    ],
  • "Params": {
    }
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "OutParams": []
}

Download

指定されたIDに紐づくファイルをダウンロードする.

指定したIDに紐づくファイルをダウンロードする

Authorizations:
cookieAuth
path Parameters
DownloadId
required
integer

ダウンロードID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

Role

ユーザロール一覧取得.

ユーザロールの一覧を取得する.
TODO ロール関連の実装は保留とするため、実装は見合わせる.

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "roles": [
    ]
}

UserControl

ユーザー一覧を取得する.

ユーザ一覧を取得する.
TODO ユーザ関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Users": [
    ]
}

ユーザーを追加する.

ユーザーを追加する.
TODO ユーザ関連の実装は保留とするため、実装は見合わせる.

Request Body schema: application/json
Name
string

ログインユーザ名

OrganizerId
string

所属する組織ID

AccountId
string

ログインに使用するアカウントID

Password
string

ログインに使用するパスワード

Responses

Request samples

Content type
application/json
{
  • "Name": "string",
  • "OrganizerId": "string",
  • "AccountId": "string",
  • "Password": "string"
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "UserId": 1
}

ユーザーパスワードを変更する.

ユーザーパスワードを変更する.
ログインなしで実施可能とする.
現状のパスワードが正しくない場合、400エラーを返却する.
TODO ユーザ関連の実装は保留とするため、実装は見合わせる.

path Parameters
AccountId
required
string

アカウントID

Request Body schema: application/json
CurrentPassword
string

現在のログインパスワード

NewPassword
string

新ログインパスワード

Responses

Request samples

Content type
application/json
{
  • "CurrentPassword": "string",
  • "NewPassword": "string"
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

ユーザー情報を編集する.

ユーザー情報を編集する.
本機能はadmin/mlmanager/userが実行可能とする.
TODO ユーザ関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth
path Parameters
id
required
integer

ユーザID

Request Body schema: application/json
NewName
string

新ユーザ名

NewOrganizerId
string

新組織ID

Responses

Request samples

Content type
application/json
{
  • "NewName": "string",
  • "NewOrganizerId": "string"
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

ユーザーを削除する.

ユーザーを削除する.
本機能はadmin/mlmanagerが実行可能とする.
TODO ユーザ関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth
path Parameters
id
required
integer

ユーザID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

ユーザーパスワードを変更する.

ユーザーパスワードを変更する.
本機能はadmin/mlmanagerが実行可能とする.
現状のパスワードを設定する必要がないパスワードリセット機能となる.
TODO ユーザ関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth
path Parameters
id
required
integer

ユーザID

Request Body schema: application/json
NewPassword
string

ログインに使用するパスワード

Responses

Request samples

Content type
application/json
{
  • "NewPassword": "string"
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

ユーザーロールを追加する.

ユーザーロールを追加する.
本機能はadmin/mlmanagerが実行可能とする.
ロールとは、admin|mlmanager|userのいずれかで、mlmanagerとuserはmlcomponent単位に設定する.
重複ロールを追加しようとした場合、200を返却する.
TODO ロール関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth
path Parameters
id
required
integer

ユーザID

Request Body schema: application/json
object (UserRole)

ユーザ権限情報

Responses

Request samples

Content type
application/json
{
  • "UserRole": {
    }
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

ユーザーロールを削除する.

ユーザーロールを削除する.
本機能はadmin/mlmanagerが実行可能とする.
与えられていないロールに対して削除をした場合、200を返却する.
TODO ロール関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth
path Parameters
id
required
integer

ユーザID

Request Body schema: application/json
object (UserRole)

ユーザ権限情報

Responses

Request samples

Content type
application/json
{
  • "UserRole": {
    }
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

Organizer

組織一覧を取得する.

組織一覧を取得する.
TODO 組織関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Organizers": [
    ]
}

組織を追加する.

組織を追加する.
ログインユーザであれば誰でも実施可能である.
後述の組織変更、組織削除APIでは操作可能な権限を、adminまたは当該組織の作成ユーザと限定するため、
作成ユーザIDを永続化してサーバ内部に保持する.
TODO 組織関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth
Request Body schema: application/json
Name
string

組織名

OrganizerId
string

組織ID

Responses

Request samples

Content type
application/json
{
  • "Name": "Aチーム",
  • "OrganizerId": "team-A"
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Id": 1
}

組織を変更する.

組織を変更する.
変更操作はAdminか、組織作成ユーザのみ受け付ける.
TODO 組織関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth
path Parameters
Id
required
integer

ID(DB管理上のIDであり、ユーザが入力する組織IDとは別)

Request Body schema: application/json
Name
string

組織名

OrganizerId
string

組織ID

Responses

Request samples

Content type
application/json
{
  • "Name": "Bチーム",
  • "OrganizerId": "team-B"
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

組織を削除する.

組織を削除する.
変更操作はAdminか、組織作成ユーザのみ受け付ける.
削除する組織に関連する機械学習コンポーネントと、
それに結び付くインベントリ情報とテストディスクリプション情報を削除する.
ユーザに割り当て済みの組織を削除しようとした場合、400エラーを返却する.
TODO 組織関連の実装は保留とするため、実装は見合わせる.

Authorizations:
cookieAuth
path Parameters
Id
required
integer

ID(DB管理上のIDであり、ユーザが入力する組織IDとは別)

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

ReportTemplate

レポートテンプレート一覧を取得する.

レポートテンプレート一覧を取得する.

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "ReportTemplates": [
    ]
}

レポートテンプレートをインストールする.

レポートテンプレート(zip)をインストールする.
指定したレポートテンプレート名とガイドラインIDのテンプレートレポートが既に存在する場合、新規追加ではなく上書きをする.
zip内のファイル構成例は以下とする.
ファイルチェックは以下2点のチェックを実施する.
 ①ZIPを正常に解凍できること
 ②解凍後、「base_report_format.html」「css/base_report.css」が存在すること
そのほかのファイル構成は任意とする.

  root  
    │  base_report_format.html  
    │  frame.html  
    │  frame_image.html  
    │  frame_summary.html  
    │  frame_table.html  
    │  frame_textarea.html  
    │  
    ├─css  
    │      base_report.css  
    │  
    └─resource  
            title_bg.png  
            title_green.png  
Authorizations:
cookieAuth
Request Body schema: multipart/form-data
Name
string
GidelineId
integer
File
object

レポートテンプレートをZIP圧縮したファイルのバイナリデータ

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "ReportTemplateId": 0
}

レポートテンプレートのひな形を生成する.

レポートテンプレートのひな形「base_report_format.html」を生成する.
作成した一式をzipファイルとして返却する.

  root  
    │  base_report_format.html  
    │  frame.html  
    │  frame_image.html  
    │  frame_summary.html  
    │  frame_table.html  
    │  frame_textarea.html  
    │  
    ├─css  
    │      base_report.css  
    │  
    └─resource  
            title_bg.png  
            title_green.png  
Authorizations:
cookieAuth
Request Body schema: application/json
GuidelineId
integer

ガイドラインID

Responses

Request samples

Content type
application/json
{
  • "GuidelineId": 0
}

Response samples

Content type
application/json
{
  • "Result": {
    }
}

レポートテンプレート一式をZIP形式でダウンロードする.

レポートテンプレート一式をZIP形式でダウンロードする.

Authorizations:
cookieAuth
path Parameters
id
required
integer

レポートテンプレートID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

Guideline

ガイドライン削除.

ガイドラインを削除する。 削除するガイドラインに関連するscope、quality_dimension、scope_quality_dimensionを削除する。

Authorizations:
cookieAuth
path Parameters
GuidelineId
required
string

ガイドラインID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

ガイドラインスキーマファイル取得

指定したidを持つガイドラインスキーマファイルを取得する。

<処理詳細>
1.ユーザが指定したガイドラインのidを受信する。
2.idに紐づくガイドラインスキーマファイルを取得する。
3.取得した情報をユーザに返す。

path Parameters
guideline_id
required
integer

ガイドラインID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "GuidelineSchemaFile": { }
}

ガイドラインスキーマファイル更新

指定したidを持つガイドラインスキーマファイルを更新する。

<処理詳細>
1.ユーザが指定したガイドラインのidとガイドラインスキーマファイルを受信する。
2.ガイドラインスキーマファイルを更新する。
3.登録合否とIDをユーザに返す。

path Parameters
guideline_id
required
integer

ガイドラインID

Request Body schema: multipart/form-data

ガイドラインスキーマファイル情報

File
object

ガイドラインスキーマファイルのバイナリデータ

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "GuidelineSchemaFileId": 1
}

ガイドライン削除.

ガイドラインを削除する。 削除するガイドラインに関連するscope、quality_dimension、scope_quality_dimension、guideline_schema_fileを削除する。

Authorizations:
cookieAuth
path Parameters
GuidelineId
required
string

ガイドラインID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    }
}

ガイドラインスキーマファイル編集チェック

指定したガイドラインidに対してガイドラインスキーマファイルで編集できるか否かを判定する。

<処理詳細>
1.ユーザが指定したガイドラインidとガイドラインスキーマファイルを受信する。
2.ガイドラインidでDBのガイドライン情報を検索し、MlComponentやTestDescriptionで使用中のscopeとQDを取得する。
3.ガイドラインスキーマファイルの編集によって上記2が削除されなければ、編集可能としてTrueを返す(編集不可ならFalse)。

path Parameters
guideline_id
required
integer

ガイドラインID

Request Body schema: multipart/form-data

ガイドラインスキーマファイル情報

File
object

ガイドラインスキーマファイルのバイナリデータ

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "CheckResult": true,
  • "WarningMessage": [
    ]
}

ガイドラインスキーマファイル削除チェック

指定したガイドラインidに対して削除できるか否かを判定する。

<処理詳細>
1.ユーザが指定したガイドラインidを受信する。
2.ガイドラインidでDBのガイドライン情報を検索し、MlComponentやTestDescriptionで使用中のscopeとQDを取得する。
3.上記2が取得されなければ、編集可能としてTrueを返す(編集不可ならFalse)。

path Parameters
guideline_id
required
integer

ガイドラインID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "CheckResult": true,
  • "WarningMessage": [
    ]
}

Scopes

スコープ一覧取得.

スコープ一覧取得をする。

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Scopes": [
    ]
}

ガイドライン所属のスコープ一覧取得

ガイドライン所属のスコープ一覧を取得する。

<処理詳細>
1.ガイドライン所属のスコープ一覧を取得する。
2.ガイドライン所属のスコープ一覧をユーザに返す。

path Parameters
GuidelineId
required
string

ガイドラインID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Scopes": [
    ]
}

ガイドライン所属のスコープとQualityDimensionの関連一覧取得

ガイドライン所属のスコープとQualityDimensionの関連一覧を取得する。

<処理詳細>
1.ガイドライン所属のスコープとQualityDimensionの関連一覧を取得する。
2.ガイドライン所属のスコープとQualityDimensionの関連一覧をユーザに返す。

path Parameters
GuidelineId
required
string

ガイドラインID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "ScopeQualityDimensions": [
    ]
}

Quality Dimension

ガイドライン毎の品質特性一覧の取得

ガイドライン毎の品質特性一覧の取得

<処理詳細>
1.ガイドライン毎の品質特性一覧を取得する。
2.ガイドライン毎の品質特性一覧をユーザに返す。

path Parameters
GuidelineId
required
string

ガイドラインID

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "QualityDimensions": [
    ]
}

品質特性一覧取得.

スコープに関連する品質特性の一覧を取得する。

path Parameters
ScopeId
required
integer

スコープId

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "QualityDimensions": [
    ]
}

画面表示用の品質特性を取得

画面表示用の品質特性を取得する.

<処理詳細>
1.画面表示用の品質特性を取得する。
2.画面表示用の品質特性情報をユーザに返す。

path Parameters
GuidelineName
required
string

ガイドライン名

QualityDimensionName
required
string

品質特性名

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "QualityDimension": {}
}

setting

setting取得.

DBのM_Settingからkeyに一致した値を取得する。

path Parameters
key
required
string

キー値

Responses

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Value": "string"
}

setting値変更

DBのsettingの値を変更する。

<処理詳細>
1.ユーザが指定したsettingテーブルのkeyとvalueを受信する。
2.DBのM_Settingのkeyに対応したvalueを変更する。
3.変更結果を返す。

path Parameters
key
required
string

キー値

Request Body schema: application/json
Value
string

変更対象のvalue

Responses

Request samples

Content type
application/json
{
  • "Value": "string"
}

Response samples

Content type
application/json
{
  • "Result": {
    },
  • "Value": "string"
}